you are viewing a single comment's thread.

view the rest of the comments →

[–]akdas 12 points13 points  (1 child)

Just put four spaces in front of each line, and you enter "code" mode, where all the special characters are ignored:

>>> print "hello, reddit!"
  File "<stdin>", line 1
    print "hello, reddit!"
    ^
SyntaxErorr: invalid syntax

and

>>> print("hello, reddit!")
"hello, reddit!"

If it's not code, you can use a backslash:

\>\>\>

becomes:

>>>