{}
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
run-icon
main.py
Prompt = """Select an operation to perform: 1 - ADD 2 - SUBTRACT 3 - MULTIPLY 4 - DIVIDE # """ User_Input = input(Prompt) A = int(input("Enter first number: ")) B = int(input("Enter second number: ")) if User_Input == "1": C = A + B elif User_Input == "2": C = A - B elif User_Input == "3": C = A * B elif User_Input == "4" and B != 0: C = A / B else: C = None print("Incorrect Input!") print("Result:", C)
Output