Answer to Question #261962 in Python for Adel

Question #261962

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!

1
Expert's answer
2021-11-06T11:48:38-0400

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


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS