Python Program Factory

1. Write Python program to find sum of two numbers.
a=int(input(" Enter first number : ")) b=int(input(" Enter second number : ")) s=a+b print(" Sum of two numbers is ",s)
2. Write Python program to find average of two numbers.
a=int(input(" Enter first number :")) b=int(input(" Enter second number : ")) s=(a+b)/2 print(" Average of two numbers is",s)
3. Write Python program to find simple interest.
p=float(input(" Enter principal :")) t=float(input(" Enter time :")) r=float(input(" Enter rate :")) si=(p*t*r)/100 print(" Simple Interst is",si)