<reponame>yorks-dev/Learning-Software-Developement<gh_stars>0
example = ['left', 'right', 'up', 'bottom']

# for i in enumerate(example):    # returns an iterable (tuple) -> (0, 'left')
#     print(i)

for i, j in enumerate(example):
    print(i, j)
    
new_dict = dict(enumerate(example))
print(new_dict)

example = ['left', 'right', 'up', 'bottom']

# for i in enumerate(example):    # returns an iterable (tuple) -> (0, 'left')
#     print(i)

for i, j in enumerate(example):
    print(i, j)
    
new_dict = dict(enumerate(example))
print(new_dict)
# for i in enumerate(example):    # returns an iterable (tuple) -> (0, 'left') #     print(i)