JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Solution Debug 2.3. Spelling
Share
Explore
Gallery
Solution Debug 2.3. Spelling
Solution Debug 2.3. Spelling
Solution
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'
+
school
)
print
(
'================================'
)
# prints blank line
print
(
'\n'
)
# display pupil details
print
(
'Pupil name: '
+
pupilname
)
print
(
'Pupil age: + age'
)
# prints blank line
print
(
'\n'
)
Below is a link to the starter task. You can right click
open on replit
to demo the answer to pupils and talk through the code.
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.