Projects/using_eval_function.py
2025-09-12 20:37:36 -07:00

4 lines
104 B
Python

expression = input("Enter an arithmetic expression")
result = eval(expression)
print("Result:", result)