write a program in Python to store two numbers in variables and display the result.
guys please can you tell this answer i will mark your answer as brain list and give you too many thanks please can you tell
Answers
Answered by
40
Answer:
Python Program to Add Two Numbers
# This program adds two numbers provided by the user.
# Store input numbers.
- num1 = input('Enter first number: ')
- num2 = input('Enter second number: ')
- # Add two numbers.
- sum = float(num1) + float(num2)
- # Display the sum.
- print('The sum of {0} and {1} is {2}'. format(num1, num2, sum))
Answered by
27
Answer:
Python Program to Add Two Numbers
- # This program adds two numbers provided by the user.
- # Store input numbers.
- num1 = input('Enter first number: ')
- num2 = input('Enter second number: ')
- # Add two numbers.
- sum = float(num1) + float(num2)
- # Display the sum.
- print('The sum of {0} and {1} is {2}'. format(num1, num2, sum))
Similar questions
Social Sciences,
1 month ago
Math,
1 month ago
Biology,
2 months ago
English,
2 months ago
Math,
10 months ago
World Languages,
10 months ago