Τη Δευτέρα, 10 Ιουνίου 2013 11:16:37 π.μ. UTC+3, ο χρήστης Νικόλαος Κούρας έγραψε: > What if i wanted to sort it out if alphabetically and not by the values? > > > > Thsi worked: > > > > for item in sorted(months.items(),key=lambda num : num[1]): > > > > but this failed: > > > > for item in sorted(months.items()): > > > > why?
sorry what i was tryign to say was why not as: for item in sorted(months.values()): -- http://mail.python.org/mailman/listinfo/python-list