how to make addition in python

Solutions on MaxInterview for how to make addition in python by the best coders in the world

showing results for - "how to make addition in python"
Marion
21 May 2019
1#  With inputs
2Number1 = int(input("Write the first number:- "))
3Number2 = int(input("Write the second number:- "))
4Sum = Number1 + Number2
5print(Sum)
Liz
30 Oct 2019
1#+ is the addition symbol in Python, so:
2print(6 + 4)
3#output: 10
Tilio
15 Apr 2020
1firstNumber = 3
2secondNumber = 4
3
4sum = firstNumber + secondNumber
5print(sum)
6
7# Output : 7