Python Program Code to Add Two Number

Here you’ll get a python program to feature 2 numbers.

The program can 1st raise the user to enter 2 numbers, calculate their add and at last print it.

input() is associate inherent operate that is employed to require input from the user.

Python Program to feature 2 Numbers

a = int(input("enter first number: "))
b = int(input("enter second number: "))
 
sum = a + b
 
print("sum:", sum)

Output

enter first number:8
enter second number:2
sum: 10

Leave a Comment