#enumerate() 함수 사용하기

index = 0
for color in ['red', 'yellow', 'blue', 'black', 'gray']:
    print(index, color)
    index = index +1

for item in enumerate(['red', 'yellow', 'blue', 'black', 'gray']):
    print(item[0], item[1])

for index, color in enumerate(['red', 'yellow', 'blue', 'black', 'gray']):
    print(index, color)