Math, asked by ishansh15082004, 2 months ago

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 MrNulla
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))

\huge\sf\pink{Thnx...}

Answered by SandySanjeet
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))

\huge\bf{Thank \:  \:  uh \: ❣}

Similar questions