I'm trying to print just a \
using python and it seems like \
is some kind of reserved character or something. The code print "\"
returns SyntaxError: EOL while scanning string literal
. Any suggestions?
The backslash is used in Python for escape sequences. The proper way to do what you want is:
print "\\" # You need to escape the \ character