0
What's wrong?
3 ответов
+ 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)
0
fruta = "banana"
indice = -1
while indice < len(fruta):
letra = fruta[indice]
print(letra)
indice = indice - 1
what do you need?
0
Thanks bro'