Colab

cheeses = ['adam', 'bree', 'cheddar', 'stilton', 'gouda', 'cottage']

for i, cheese in enumerate(cheeses):
    if len(cheese) >= 5:
        cheese = "premium " + cheese
        print(cheese)
        cheeses[i] = cheese

premium cheddar
premium stilton
premium gouda
premium cottage
cheeses

['adam',
 'bree',
 'premium cheddar',
 'premium stilton',
 'premium gouda',
 'premium cottage']
list(enumerate(cheeses))

[(0, 'adam'),
 (1, 'bree'),
 (2, 'cheddar'),
 (3, 'stilton'),
 (4, 'gouda'),
 (5, 'cottage')]
i, cheese = (0, 'adam')
print(i)
print(cheese)

0
adam