JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Gallery
Debug 4.1. Missing Number with starter code
Share
Explore
Gallery
Debug 4.1. Missing Number with starter code
Debug 4.1. Missing Number with starter code
The Task
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
)
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.