I know we use enumerate for iterating a list but I tried it in a dictionary and it didn\'t give an error.
enumerate
CODE:
enumm = {0: 1, 1: 2, 2:
The first column of output is the index of each item in enumm and the second one is its keys. If you want to iterate your dictionary then use .items():
enumm
for k, v in enumm.items(): print(k, v)
And the output should look like:
0 1 1 2 2 3 4 4 5 5 6 6 7 7