️ DEPRECATED GITLAB INSTANCE ️ This GitLab is now read-only for reference. Please use https://gitlab.iauro.co for all new work.

Migration completed on September 17, 2025

Commit ad7e606a authored by Rahul Sonawane's avatar Rahul Sonawane

Initial commit

parents
def calculate(expression):
ans = eval(expression)
print(ans)
return
def get_expression():
expression = input("Enter the expression..")
return expression
while True:
expression = get_expression()
if expression.lower() == "stop":
print("Exiting calculator.")
break
else:
calculate(expression)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment