Python program to calculate simple interest using function

Python program to calculate simple interest using function

def interest(principal, time=2, rate=0.10): return principal*rate*time #_____main_______ prin=float(input("Enter principal amount: ")) print("Simple interest with default ROI and time values is: ") si1=interest(prin) print("Rs.",si1) roi=float(input("Enter rate of interest...
Python program for find factorial of a given number using function

Python program for find factorial of a given number using function

def factorial(num): #function definition fact=1 for i in range(1, num+1): ...
python program to add two numbers using function

Python program to add two numbers using function

def add_num(a,b): #function for addition sum=a+b; return sum; #return value #_____main_____ num1=int(input("Enter first...
- Advertisement -

Latest article

You Can’t Rush Really Love

There is a large number of commitment blog sites online. Most are funny people that chronicle weekly times or endless musings regarding the bizarre...

Harvest™ Brings ease to opportunity Tracking & Invoicing So Dating Specialists Can Pay attention...

The small Version: For matchmakers and matchmaking mentors, really love is their company — but that doesn't mean they like all time consuming jobs...

Conseils simples pour choisir un profil Pic pour capturer Elle...

Rencontres sur Internet profils ont tendance à être compliqués. C'est difficile de stabiliser devenir honnête avec un partage excessif, et découvrir le bon...