simultaneous assignment

Edward Elliott nobody at
Wed May 3 19:51:03 CEST 2006

Steve R. Hastings wrote:
> You could also use a function that counts all different values in a list,
> reducing the list to a dictionary whose keys are the unique values from
> the list. 

Wouldn't reducing to a set instead of a dict make more sense if all you want
to do is count uniq elements?

More information about the Python-list mailing list