Facebook
From Cute Gorilla, 1 Year ago, written in Python.
Embed
Download Paste or View Raw
Hits: 126
  1. for indice,fruta in enumerate(frutas,1):
  2.     if indice == 3:
  3.             print(f'{indice} {fruta} EM PROMOÇÃO')
  4.             print(f'Aproveite! Somente hoje a fruta {frutas[2]} está com preço imperdível!!!')
  5.     else:
  6.         print(indice,fruta)