calculator in python for addition of two numbers

 So This is a piece of code for calculator in python language ( For addition of two numbers)


# calculator to add two numbers in python


print("Enter the first number\n")

num1 = input() # Taking first number input

print("\n")

print("Enter the second number\n")

num2 = input() # Taking second number input

print("\n")

print("The sum is\n")

print(int(num1)+int(num2)) # Printing sum of two numbers




Comments