Simple exercise

Thomas 'PointedEars' Lahn PointedEars at web.de
Thu Mar 10 11:08:12 EST 2016


Thomas 'PointedEars' Lahn wrote:

>     od = OrderedDict()

This is pointless, then.

>     […]
>     od = OrderedDict(map(lambda item: (item[0], 0), items))
>     for item in items: od[item[0]] += item[1]

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.



More information about the Python-list mailing list