#try to avoid input function a = int(input()) b = int(input()) c = input() if c == "+": print(a+b) elif c == "-": print(a-b) elif c == "x" or c == "*": print(a*b) elif c == "/" or c == "//": print(a//b) else: print("Invalid input")
Click the run button. Try to avoid input() function.