Professional Documents
Culture Documents
Practical No - 1
Practical No - 1
Question 2- Write a program in python to calculate simple interest taking input from
user
Implementation:
p = int(input("enter the principle amount:"))
t = int(input("enter the time(in yrs):"))
r = int(input("enter the rate of interest:"))
s= (p*r*t)/100
print("The Simple Interest is", s)
Output:
Output: -
Question 4. Write a program in pyton to reverse a number taking input from user.
Implementation:
a=input("Enter the first digit:")
b=input("Enter the second digit:")
print("The number is:",a+b)
print("The reversed number",b+a)
Output: