Advertisement
Olegos

Calc in one line

Apr 6th, 2021
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. while True: exec("try: print(eval(input('Введи пример:')))\nexcept Exception as error: print(error)")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement