This file contains 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
while True: | |
a = int(input("Choose a number:\n")) | |
b = int(input("Choose another one:\n")) | |
operation = input("Choose an operation:\n Options are: +, -, * or /.\n Write 'exit' to finish\n") | |
if operation == 'exit': | |
break | |
if operation == '+': |
This file contains 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 👇🏻: | |
def get_yearly_revenue(monthly_revenue): | |
return monthly_revenue * 12 | |
def get_yearly_expenses(monthly_expenses): | |
return monthly_expenses * 12 | |
def get_tax_amount(profit): | |
if profit > 100000: |