STD IX PYTHON PART 1
STD IX PYTHON PART 1
Python Programming
Std : IX
II Sem coding Portion
(Part –I)
Program 2: Program to print the sum of two numbers using int() function:
num1=int(input("enter no. 1 ="))
num2=int(input("enter no. 2 ="))
sum = num1 + num2
print(sum)
Program 3: Program to print the product of two numbers using int() function:
num1=int(input("enter value 1"))
num2=int(input("enter value 2"))
product=num1*num2
print("the product of 2 no. is", product)