3rd Mar 2021, 1:28 AM
Felipe Gil Bartolo Rodriguez
Felipe Gil Bartolo Rodriguez - avatar
3 Respostas
+ 1
You will never reach the end of the loop as indice will always be negative so it will always be less than len(fruta), whitch is positive What you want is indice >= -len(fruta)
3rd Mar 2021, 2:34 AM
Angelo
Angelo - avatar
0
fruta = "banana" indice = -1 while indice < len(fruta): letra = fruta[indice] print(letra) indice = indice - 1 what do you need?
3rd Mar 2021, 1:29 AM
Felipe Gil Bartolo Rodriguez
Felipe Gil Bartolo Rodriguez - avatar
0
Thanks bro'
3rd Mar 2021, 2:48 AM
Felipe Gil Bartolo Rodriguez
Felipe Gil Bartolo Rodriguez - avatar