3 number calculator

3 number calculator

num1 = float(input("Enter a number ")) num2 = float(input("Enter a number ")) op1 = input("Enter operation") if op1 == "/": x = num1 / num2 print(num1 / num2) num3 = float(input("Enter a number ")) op2 = input("Enter operation") if op2 == "/": print(x / num3) if op2 == "*": print(x * num3) if op2 == "+": print(x + num3) if op2 == "-": print(x - num3) if op1 == "*": x = num1 * num2 print(num1 * num2) num3 = float(input("Enter a number ")) op2 = input("Enter operation") if op2 == "/": print(x / num3) if op2 == "*": print(x * num3) if op2 == "+": print(x + num3) if op2 == "-": print(x - num3) if op1 == "+": x = num1 + num2 print(num1 + num2) num3 = float(input("Enter a number ")) op2 = input("Enter operation") if op2 == "/": print(x / num3) if op2 == "*": print(x * num3) if op2 == "+": print(x + num3) if op2 == "-": print(x - num3) if op1 == "-": x = num1 - num2 print(num1 - num2) num3 = float(input("Enter a number ")) op2 = input("Enter operation") if op2 == "/": print(x / num3) if op2 == "*": print(x * num3) if op2 == "+": print(x + num3) if op2 == "-": print(x - num3) num3 = float(input("Enter a number ")) op2 = input("Enter operation") if op1 == "/": print(num1 / num2) if op1 == "*": print(num1 * num2) if op1 == "+": print(num1 + num2) if op1 == "-": print(num1 - num2)
1