JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Debug 2.4. No Errors - Wrong Output with starter code
Share
Explore
Gallery
Debug 2.4. No Errors - Wrong Output with starter code
Debug 2.4. No Errors - Wrong Output with starter code
The Task
Python Starter Code
CodeClips
Python Starter Code
Copy and paste the code below into your
main.py
file before you begin the task.
# declare and initialise variables
pupilName
=
'Max Myles'
age
=
15
school
=
'Hawkins High School'
# prints blank line
print
(
'\n'
)
# display welcome message
print
(
'Welcome to '
+
str
(
age
)
)
print
(
'================================'
)
# prints blank line
print
(
'\n'
)
# display pupil details
print
(
'Pupil name: '
+
school
)
print
(
'Pupil age: '
+
pupilName
)
# prints blank line
print
(
'\n'
)
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.