Skip to content
Solution Debug 4.1. Missing Number
  • Pages
    • Solution
    • 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.

# ask user for first number and stores user input
numberOne = input('Enter the first number: ')

# ask user for second number and stores user input
input('Enter the second number: ')
# calcualates numberOne + numberTwo and stores answer
additionAnswer = numberOne + numberTwo

# prints a blank line
print('\n')
# display addition sum and answer
print(numberOne + " + " + numberTwo + " = " + numberTwo)
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.
 
Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.