Reputation: 2785
I want to print the actual following string: \n
, but everything I tried just reads it in takes it as a new line operator.. how do I just print the following: \n
?
Upvotes: 1
Views: 1646
Reputation: 134571
You have to escape \n
somehow
Either just the sequence
print "\\n"
or mark whole string as raw
print r"\n"
Upvotes: 3