JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
Solution Debug 3.2. Storing Input
Solution
The Task
Python Starter Code
Code Clips
More
Share
Explore
Solution
At the right hand side is the
the task, starter code and code clips
that pupils got.
Below is a link to the solution. You can right click
open on replit
to demo the answer to pupils and talk through the code.
Incase it doesn’t load above here is the link
https://replit.com/@STACSSupport/Teachers-Debug-32-Storing-input?v=1
# 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
)
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.