All pastes #884936 Raw Edit

Something

public text v1 · immutable
#884936 ·published 2008-01-30 17:59 UTC
rendered paste body
    dict = { }
    for item in list:
        if not item in dict:
            dict[item] = 1
        else:
            dict[item] += 1