Important Notice:

Python Practice Programs with Output

Python Practice Programs with Output

20 views 1 min read

Python Practice Programs with Output :-

 

Program 1: Arithmetic Operations-

a = int(input("Enter first number: "))
b = int(input("Enter second number: "))

print("Addition =", a + b)
print("Subtraction =", a - b)
print("Multiplication =", a * b)
print("Division =", a / b)
print("Modulus =", a % b)
 
Output-
Enter first number: 10
Enter second number: 3
Addition = 13
Subtraction = 7
Multiplication = 30
Division = 3.3333333333333335
Modulus = 1

Related Notes