ADDING 2 NUMBERS

# taking and storing first number in num1 variable num1 = int(input("Enter first number: ")) # taking and storing second number in num2 variable num2 = int(input("Enter second number: ")) # adding the two numbers and storing it in sum variable sum = num1 + num2 # printing the sum print("Sum of two numbers is ",sum)
Note: Click on copy button to copy the given code and you can paste it in any online compiler to see the result, IF YOU ARE A MOBILE USER THEN DOWNLOAD "Dcoder"(Free App) COMPILER FROM GOOGLE PLAY STORE