a question

Fredrik Lundh fredrik at pythonware.com
Wed Jan 19 16:10:05 EST 2005


Bill Mill wrote:

> You've got a couple problems. First, you need to end the string before
> putting a continuation in.

>>> "no\
... pe"
'nope'

>>> "however\
  File "<stdin>", line 1
    "however\
             ^
SyntaxError: EOL while scanning single-quoted string

(in the second case, the ^ is trying to point out that I added
some whitespace after the backslash)

</F> 






More information about the Python-list mailing list