[NooB] Using Escape Sesquences with Strings...

Daniel Bickett dbickett at gmail.com
Fri Feb 11 06:43:46 EST 2005


administrata wrote:
> print \trock

Your problem lies in this line. The escape sequence \t is not a
variable, so to speak. It is just that, an escape sequence, so it must
be located inside of a string:

print "\t" + rock

-- 
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/



More information about the Python-list mailing list