Creating a Calculator in python with calculation history

calculator with calculation history in python past_calculations =[]; def add(a,b): return a+b; def subtract(a,b): return a-b; def multiply (a,b): return a*b; def divide(a,b): try: return a/b except Exception as e: print(e) def power(a,b): return a**b def remainder(a,b): return a%b def history(): if past_calculations: for index,calc in enumerate(past_calculations): print(calc); else: print("No past calculations to show"); return 0; def select_op(choice): if (choice == '?'): return history() if (choice == '#'): return -1 elif (choice == '$'): return 0 elif (choice in ('+','-','*','/','^','%')): while (True): num1s = str(input("Enter first number...