{}
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
print("Simple Calculator") print("Choose operation: +, -, *, /") #all code made by Joel or ThatOneDev-studio x = float(input("Enter first number: ")) op = input("Enter operation (+, -, *, /): ") y = float(input("Enter second number: ")) if op == "+": print("Result:", x + y) elif op == "-": print("Result:", x - y) elif op == "*": print("Result:", x * y) elif op == "/": if y != 0: print("Result:", x / y) else: print("Error: Division by zero!") else: print("Invalid operation")
Output