This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 == "-": |