In this code, what is it suppose to do?



simple = input("version 1 or 2? (answer in a number)")

if simple == '1':
    input1 = input("Enter the 1st number:")
    input2 = input("Enter the 2nd number:")
    input3 = input("Enter the symbol")

    if input3 == '+':
        input4 = int(input1) + int(input2)
        print(input4)

    elif input3 == '-':
        input4 = int(input1) - int(input2)
        print(input4)

    elif input3 == '/':
        input4 = int(input1) / int(input2)
        print(float(input4))

    elif input3 == '*':
        input4 = int(input1) * int(input2)
        print(input4)

    elif input3 == '^' or '**':
        input4 = int(input1) ** int(input2)
        print(input4)

    else:
        print("Thats not in the calculator")

if simple == '2':
    input1 = input("Enter the 1st number:")
    input2 = input("Enter the symbol")

    if input2 == '^' or '**':
        input4 = int(input1) ** (2)
        print(input4)

    elif input2 == '^3' or '**3':
        input4 = int(input1) ** (3)
        print(input4)