Python Program to Add Two Numbers
Here you will learn an easy example code of python program to add two numbers using the + operator. In this program first we will take 2 numbers input, calculate the sum, and print the result.
Python program to add two numbers with user input
1 2 3 4 5 6 | a = int(input("Enter first Number: ")); b = int(input("Enter second Number: ")); Addition = a + b; print("Addition : ", Addition); |
Output
Enter first Number : 2
Enter second Number : 6
Addition : 8
Check out our other Python examples