lst = [('D', 0), ('F', 0), ('A', 1), ('B', 1), ('C', 1), ('E', 2)]print(dict(lst))
Standard input is empty
{'D': 0, 'F': 0, 'A': 1, 'B': 1, 'C': 1, 'E': 2}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!