python named tuple from dict code example
Example 1: Python Ordered Dictionary
from collections import OrderedDict
# Remembers the order the keys are added!
x = OrderedDict(a=1, b=2, c=3)
Example 2: python collections
list = [1,2,3,4,1,2,6,7,3,8,1]
Counter(list)