Untitled
RonGut23
plain_text
a year ago
216 B
16
Indexable
# Enumerate
frutas = ['Uva', 'Pitaia', 'Abacate', 'Jaca']
for indice, fruta in enumerate(frutas, 0):
if indice == 3:
print(f"{indice} {fruta} EM PROMOÇÃO!")
else:
print(indice, fruta)Editor is loading...
Leave a Comment