Gallery
Solution Debug 3.3. Variable Type
Share
Explore
Solution Debug 3.3. Variable Type

icon picker
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 ​
# blank line
print('\n\n')
# ASKS the user to enter their name
name = 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: ' + name)
print('Age: ' + str(age))


Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.