How to fix my calculator
So as an early project I thought I could create a calculator, I could but I needed the code to repeat after each calculation. It did for each 'if' statement, but the else statement breaks it: Function = (input("+, -, * or /: ")) if Function == ("+"): Answer = int(input("First number to add: ")) + int(input("Second number to add: ")) print(Answer) Function = (input("+, -, * or /: ")) if Function == ("-"): Answer = int(input("First number: ")) - int(input("Number to subtract: ")) print(Answer) Function = (input("+, -, * or /: ")) if Function == ("*"): Answer = int(input("First number: ")) * int(input("Number to multiply by: ")) print(Answer) Function = (input("+, -, * or /: ")) if Function == ("/"): Answer = int(input("First number: ")) / int(input("Number to divide by: ")) print(Answer) Function = (input("+, -, * or /: ")) else: print("Please enter a valid function") Function = (input("+, -, * or /: ")) If anyone has any suggestions please give them to me!