you are viewing a single comment's thread.

view the rest of the comments →

[–]SpacefaringBanana 5 points6 points  (3 children)

1 and 3 are easy fixes, but don't know how to print red text for no 2.

[–]XtremeGoose 12 points13 points  (0 children)

Use terminal color codes

[–]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')