Single string print statements on multiple lines.
MonkeeSage at gmail.com
Mon Mar 12 13:40:44 CET 2007
> In my 100 level CS course, I was asked to create multiple lines of
> output within a single string. Of course I know how to:
If this is for a CS course, you shouldn't really be cheating and
asking for an answer here, should you? I mean, the whole point of
taking (and paying for!) a CS course is to learn CS, right? But like
Diez said, the standard C escapes work in python: \t = TAB, \r =
CARRIAGERETURN, \n = NEWLINE/LINEFEED, &c.
More information about the Python-list