Skip to content
Debug 3.1. Keyboard Input with starter code
  • Pages
    • The Task
    • icon picker
      Python Starter Code
    • Code Clips

Python Starter Code

Copy and paste the code below into your main.py file before you begin the task.

# blank line
print('\n\n')

# ASKS the user to enter their favourite colour
favouriteColour = input(What is your favourite colour? )

#ASKS the user to enter their favourite colour
favouriteFood = input(What is your favourite food? )

# blank line
print('\n\n')
# DISPLAY user output
print('Your favourite colour is ' + favouriteColour)
print('Your favourite food is ' + favouriteFood);
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.