I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
three is better than two

Copy the code below into a new file and save it as “sum.py”.

make the following changes –

– ask for a third number and store it in a new variable.
– add this number to the answer.

num1 = int(input("Enter the first number -"))
num2 = int(input("Enter the second number -"))
answer = num1 + num2
print(answer)




Comments are closed.

Information