Chinese, asked by KpMaster, 10 months ago

What is the code to sum two numbers in python

Answers

Answered by ninja73
2

Answer:

In this program, we asked the user to enter two numbers and this program displays the sum of two numbers entered by user. We use the built-in function input() to take the input. Since, input() returns a string, we convert the string into number using the float() function. Then, the numbers are added.

Explanation:

Hope you like this answer

Answered by atrs7391
2

n1 = int(input("Enter 1st Number")

n2 = int(input("Enter 1st Number")

print ("Sum = ",n1+n2)

Similar questions