On Mon, 6 Sep 2010 12:06:22 -0500 Carlos Herrera Polo wrote: > Lo que ocurre es que el diccionario me retorna algo como : > > ('A':[1,1,2],'B':[1,1,1,2,2],'C':[2,2])
pivot = {'A':[1,1,2],'B':[1,1,1,2,2],'C':[2,2]} for name, num in sorted(pivot.iteritems()): print name, num A [1, 1, 2] B [1, 1, 1, 2, 2] C [2, 2] http://docs.python.org/tutorial/datastructures.html#looping-techniques _______________________________________________ Python-es mailing list Python-es@python.org http://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/