Skip to content
Solution Debug 3.3. Variable Type
  • Pages
    • icon picker
      Solution
    • The Task
    • Python Starter Code
    • Code Clips

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))


 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.