dict.items(): return a copy of the dictionary’s list of (key, value) pairs.
dict.iteritems(): return an iterator over the dictionary’s (key, value) pairs.
Mình không hiểu iterator nghĩa là cái gì, cho nên không hiểu luôn ý nghĩa của hai cái hàm trên…
Thêm nữa là hàm set, ví dụ:
eg = { 'a': 1, 'b': 2 }
eg_set = set(eg.iteritems())