On Wed, Apr 27, 2011 at 6:23 PM, Thomas 'PointedEars' Lahn
<pointede...@web.de> wrote:
> Chris Angelico wrote:
>> Rusty Scalf wrote:
>>> list1 = ['pig', 'horse', 'moose']
>>> list2 =  ['62327', '49123', '79115']
>>> n = 2
>>> s2 = "list" + `n`
>
> I would prefer the clearer
>
>  s2 = "list" + str(n)
>
> or
>
>  s2 = "list%s" % n

Agreed. The backticks operator is deprecated and was removed in Python 3.

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to