JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Debug 3.3. Variable Type with starter code
Share
Explore
Gallery
Debug 3.3. Variable Type with starter code
Debug 3.3. Variable Type with starter code
The Task
Python Starter Code
Code Clips
Python Starter Code
Copy and paste the code below into your
main.py
file before you begin the task.
# blank line
print
(
'\n\n'
)
# ASKS the user to enter their name
name
=
int
(
input
(
'Please enter your name: '
)
)
# ASKS the user to enter their age
age
=
int
(
input
(
'Please enter your name: '
)
)
# blank line
print
(
'\n\n'
)
# DISPLAY user output
print
(
'Name: '
+
age
)
print
(
'Age: '
+
age
)
Gallery
Share
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.