390 - python program to accept two numbers from the keyboard and find their sum
python program to accept two numbers
from the keyboard and find their sum
========================================
Code:
x = int(input('Enter first number:'))
y = int(input('Enter second number:'))
print('the sum of ',x,' and ',y,' is',x+y)
print('the sum of {} and {} is {}'.format(x,y,x+y))
Output:
Enter first number : 92
Enter second number : 88
the sum of 92 and 88 is 180
the sum of 92 and 88 is 180
No comments:
Post a Comment