1 Comment

print("text-based calculator")

print()

expresion = input("ingrese expresion: ")

while expresion != "exit":

print(eval(expresion))

expresion = input("ingrese expresion: ")

Expand full comment