Dernière activité 1687456628

Révision 2e7b0165fbb14e1a982f0be854e6216f9669475f

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