Last active 1687456628

Revision 2e7b0165fbb14e1a982f0be854e6216f9669475f

calculator.py Raw
1while True:
2 try:
3 opr = input("calculator> ")
4 exec(f'ans = {opr}')
5 print(ans)
6 except KeyboardInterrupt:
7 print()
8 quit()
9