Untitled
Anonymous
python
05/25/2024 3:50 PM
356 B
26
Indexable
frutas = ["Maca", "Laranja", "Morango", "Limão"]
def get_pomocao(item):
for indice, fruta in enumerate(frutas):
if indice == item:
print(f"{indice} {fruta} EM PROMOCÃO")
else:
print(f"{indice} {fruta}")
get_pomocao(3)Editor is loading...
Leave a Comment