Does this run on your pc with pycharm?
#Written by Jamie Peacock, Basic calculator program # works perfectly on pycharm so if this helps just copy over # insert breakpoint on line one and debug , use F8 key to follow step by step class Calculator: def add(self): num1 = int(input(''' Enter first number: ''')) num2 = int(input(''' Enter second number: ''')) result = num1 + num2 print(''' The sum is ''' + str(result)) def sub(self): num1 = int(input(''' Enter first number: ''')) num2 = int(input(''' Enter second number: ''')) result = num1 - num2 print(''' The subtraction is ''' + str(result)) def multi(self): num1 = int(input(''' Enter first number: ''')) num2 = int(input(''' Enter second number: ''')) result = num1 * num2 print(''' The multiplication is ''' + str(result)) def div(self): num1 = int(input(''' Enter first number: ''')) num2 = int(input(''' Enter second number: ''')) result = num1 / num2 print(''' The division is ''' + str(result)) c1 = Calculator() while True: user_input = input('Do you want to start a calculation y or n: ') if user_input.lower() == 'y': print(''' select an operation to perform ''') print('1. ADD') print('2. SUBTRACT') print('3. MULTIPLY') print('4. DIVIDE') operation = int(input(''' Enter selection of operator: ''')) if operation == 1: c1.add() elif operation == 2: c1.sub() elif operation == 3: c1.multi() elif operation == 4: c1.div() elif operation >= 5: print(''' option not available''') else: break