Enumerate

Anonymous
python
09/09/2024 9:36 PM
268 B
19
Indexable
# Desafio
frutas = ["Maçã", "Laranja", "Morango", "Limão"]
for indice, frutas in enumerate(frutas, 0):
    print(indice, frutas)
    if indice == 3:
        print(f"{frutas} está em PROMOÇÃO!!!")
Editor is loading...
Leave a Comment