Skip to content

How to print sum of two numbers in Python?

num1 = int(input()) # taking Input from user
num2 = int(input()) # taking Input from user
# printing sum of two numbers that are given from user
print(num1 + num2)
See also  MongoDB script to insert 100million documents in a collection

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.