Kindly show me a better way to do it

Oltmans rolf.oltmans at gmail.com
Sat May 8 16:41:44 EDT 2010


Hi, I've a list that looks like following

a = [ [1,2,3,4], [5,6,7,8] ]

Currently, I'm iterating through it like

for i in [k for k in a]:
	for a in i:
		print a

but I was wondering if there is a shorter, more elegant way to do it?



More information about the Python-list mailing list