Enumerate
unknown
python
a year ago
201 B
14
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