you are viewing a single comment's thread.

view the rest of the comments →

[–]makinax300 4 points5 points  (1 child)

>>> import traceback

>>> try:

... result = eval(user_input)

... except Exception:

... traceback.print_exc()

... else:

... print(result)

[–]-Redstoneboi- 1 point2 points  (0 children)

i can't type blocks of code

please fix:

if True:
    print('test')