{}
Build with AI. Win prizes. Get featured on the Wall.
Join Challenge
Build with AI. Win prizes. Get featured on the Wall. Join Challenge
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