Skip to content

Instantly share code, notes, and snippets.

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)
# πŸ‘‡πŸ» YOUR CODE πŸ‘‡πŸ»:
# /YOUR CODE
def get_yearly_revenue (monthly_revenue):
return monthly_revenue * 12
def get_yearly_expenses (monthly_expenses):
return monthly_expenses * 12