lst = [('D', 0), ('F', 0), ('A', 1), ('B', 1), ('C', 1), ('E', 2)]
print(dict(lst))