JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Debug 3.2. Storing Input with starter code
Pages
The Task
Python Starter Code
Code Clips
Debug 3.2. Storing Input with starter code
/
Python Starter Code
Share
Explore
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
=
input
'Please enter your name: '
# blank line
print
(
'\n\n'
)
# DISPLAY user output
print
(
'Hello '
+
name
)
Gallery
Share
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
Ctrl
P
) instead.