Possible Duplicate:
Printing elements out of list
i have a lists that have N items, eg [item1,item2, item3, value ] then i would like to print
print' %s.%s.%s = %s' % (item1,item2, item3, value)
My problem is ‘N’ variable, and for any cases of ‘N’, i would like to print
print' %s.%s.%s....%s (N times) = %s' % (item1,item2,item3,... , itemN, value)
Use
str.join().