My first Python program

Christian Heimes lists at cheimes.de
Thu Oct 14 00:33:42 CEST 2010


Am 14.10.2010 00:00, schrieb Jonas H.:
> If you haven't got braces around an expression and you want it to be 
> multi-line, you need a '\' at the end of each line, just like C macros:
> 
>      msg = "WARNING: " \
>            "Pants on fire"

or

msg = ("WARNING: "
       "Pants on fire")

Christian




More information about the Python-list mailing list