how to make addition in python

Do you want to know the details regarding “how to make addition in python”. If yes, you’re in the correct article.

how to make addition in python

#  With inputs
Number1 = int(input("Write the first number:- "))
Number2 = int(input("Write the second number:- "))
Sum = Number1 + Number2
print(Sum)
#+ is the addition symbol in Python, so:
print(6 + 4)
#output: 10
firstNumber = 3
secondNumber = 4

sum = firstNumber + secondNumber
print(sum)

# Output : 7

Final Words

I hope this article helps you to know about “how to make addition in python”. If you have any doubts regarding this tutorial please let us know via the comment section. Share this article with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment