Skip to content

Instantly share code, notes, and snippets.

# 01 - Arithmetic Calculator (+, -, *, /)
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
operation = input("Enter operation (+, -, *, /): ")
if operation == "+":
result = num1 + num2
print(f"{num1} + {num2} = {result}")
elif operation == "-":