On Tue, Apr 19, 2011 at 10:34 AM, James Mills
<prolo...@shortcircuit.net.au> wrote:
> Normally it's considered bad practise to concatenate strings.
> Use a a format specifier like this:
>
>> message = "Bah."
>>
>> if test:
>>   message = "%s %s" (message, " Humbug!")
>>
>> print(message)
>
> Python3 (afaik) also introduced the .format(...) method on strings.

Opps I posted to the wrong list :/

-- 
-- James Mills
--
-- "Problems are solved by method"
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to