use of index (beginner's question)

Algis Kabaila akabaila at pcug.org.au
Thu Apr 28 05:32:17 CEST 2011


On Thursday 28 April 2011 11:23:51 Thomas 'PointedEars' Lahn 
wrote:
> Chris Angelico wrote:
> > Rusty Scalf wrote:
> >> list1 = ['pig', 'horse', 'moose']
> >> list2 =  ['62327', '49123', '79115']
> >> n = 2
> >> s2 = "list" + `n`
>>> "list" + 'n'
'listn'
>>> 
And IMHO you did not want that, did you?

OldAl.
-- 
Algis
http://akabaila.pcug.org.au/StructuralAnalysis.pdf



More information about the Python-list mailing list