This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| calculating = True | |
| while calculating: | |
| number_A = int(input("Choose a number:\n")) | |
| number_B = int(input("Choose another one:\n")) | |
| operation = input("Choose an operation:\n\tOptions are: + , - , * or /.\n\tWrite 'exit' to finish\n") | |
| if operation == "+": | |
| print("Result:",number_A + number_B) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ππ» YOUR CODE ππ»: | |
| # /YOUR CODE | |
| def get_yearly_revenue (monthly_revenue): | |
| return monthly_revenue * 12 | |
| def get_yearly_expenses (monthly_expenses): | |
| return monthly_expenses * 12 |