Python, Python Code

How to Add Two Numbers in Python

Less than a minute to read
print("PROGRAMME 1 FOR ADDITION OF 2 NUMBERS")
x=int(input("ENTER 1st NUMBER\n"))
y=int(input("ENTER 2nd NUMBER\n"))
print("SUM OF " + str(x) + " & " + str(y) + " IS " + str(x+y))

Output below


Leave a Reply

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

Sign up for our Newsletter

Join our newsletter and get resources, curated content, and design inspiration delivered straight to your inbox.

Related Posts