Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Procedure
- def menu():
- HayUni()
- interest(1_000_000, 5, 7)
- # Procedure
- def HayUni():
- print("Haii... Universe")
- # Function (PARAMETER)
- def interest(money, percent, month):
- result = money * (percent/100) * (month/12)
- results = int(result)
- print("Money: ", money, " Percent: ", percent, " Month: ", month, "INTEREST; ", results, " DECIMAL: ", result)
- menu()
- # FUNCTION 3:
- # 1. Function without parameter (Procedure), example: main()
- # 2. Function with parameter, example: interest(parameter). interest() is constructor
- # 3. Function with return (method)
- # Pray 4 Uyghur: https://bylinetimes.com/2020/08/24/death-is-everywhere-millions-more-uyghurs-missing/
Advertisement
Add Comment
Please, Sign In to add comment