Bom dia pessoal,alguÉm sabe resolver essa liÇÃo?


i = 1
while i <= 50
print i
i -= 1


Hey @didi87

You need to increase the value of ‘i’, so that it will eventually reach 50, otherwise you’ll have an endless loop since the breaking point of the while loop is never reached.
Changing from “i -= 1” to “i+=1” will solve this.