Input + Addition
by CodeChum Admin
Hopefully you haven't forgotten about your previous lesson, because you're going to need it for this one.
Instructions:
Input two integers (one per line) and make sure to store them in variables.
Add the two integers and print out their sum!
int1 = int(input())
#this code assigns an input number to a variable
int2 = int(input())
#this code assigns an input number to variable
sum_of_int = int1 + int2
#this code used to sum two numbers
print(sum_of_int)
#prints our output
Comments
Leave a comment