Re: Single string print statements on multiple lines.

2007-03-13 Thread Gabriel Genellina
En Tue, 13 Mar 2007 08:31:17 -0300, Bruno Desthuilliers <[EMAIL PROTECTED]> escribió: > Obviously, the OP is not trying to cheat (explicitelt > aknowledging it is homework), and has a good enough understanding of > what the usual solution is (asking for the escape char in Python). > > Now of cou

Re: Single string print statements on multiple lines.

2007-03-13 Thread Bruno Desthuilliers
Goldfish a écrit : > http://www.catb.org/~esr/faqs/smart-questions.html > > Don't post homework questions. > Given the way the question was expressed, I don't think this particular rule applies here. Obviously, the OP is not trying to cheat (explicitelt aknowledging it is homework), and has a g

Re: Single string print statements on multiple lines.

2007-03-12 Thread Steven D'Aprano
On Mon, 12 Mar 2007 05:40:44 -0700, MonkeeSage wrote: > HeEm wrote: >> 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, s

Re: Single string print statements on multiple lines.

2007-03-12 Thread Goldfish
http://www.catb.org/~esr/faqs/smart-questions.html Don't post homework questions. -- http://mail.python.org/mailman/listinfo/python-list

Re: Single string print statements on multiple lines.

2007-03-12 Thread MonkeeSage
HeEm wrote: > 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

Re: Single string print statements on multiple lines.

2007-03-12 Thread Diez B. Roggisch
HeEm wrote: > 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: > > print "I am" > print "a python" > print "newbie." > > How can I get this accomplished using a single string (assuming this > means a one line statement)