dict(enumerate(list)) code example Example: python dict enumerate for i, (k, v) in enumerate(example_dict.items()): print(i, k, v)