Practice Question
Practice Question
Q1: Write a python program used to take two numbers from the user and find its
addition.
Sol:
num1 = int(input(“Enter first no.”))
num2 = int(input(“Enter second no.”))
sum = num1 + num2
print("Sum of two numbers=, sum)
Q2: Write a python program used to calculate Simple Interest by using the given
formula: SI=(P*R*T)/100
Sol:
P = int(input(“Enter first no.”))
R = int(input(“Enter second no.”))
T = int(input(“Enter second no.”))
SI = (P*R*T)/100
print("Sum of two numbers=, sum)