Dictionary comprehension

dict((k,v[0]) for k,v in data.iteritems())

Comments

Popular Posts