-->
Showing posts with label python program to print sum of two numbers 3 and 4. Show all posts
Showing posts with label python program to print sum of two numbers 3 and 4. Show all posts

python program to print sum of two numbers 3 and 4

type following code in IDLE.
-----------------------------------------
#program to print sum of two numbers 3 and 4 #comment of program

a=3   #assigning value to a variable
b=5    #assigning value to variable
sum=a+b#forumaltion
print("the sum of two numbers is=\n",sum)#printing the sum
print("the sum of numbers",a,"and",b,"is",sum)#we can print values by putting comma