Last active 1687456628

calculator.py Raw
1while True:
2 try:
3 print(eval(input("calculator> ")))
4 except Exception as e:
5 print(e)
6 except KeyboardInterrupt:
7 print()
8 quit()