[Tutor] Program for outputing the letter backward

Hugo González Monteverde hugonz-lists at h-lab.net
Wed Mar 29 02:27:26 CEST 2006

Hoffmann wrote:

> while index >= index_zero:
>    letter=vehicle[index]
>    print letter
>    index -= 1
> The problem is that I get no output here. Could I hear
> from you?

Hi, remember that the condition for the while has to be true. When does
index >= index_zero stop being true???

Hope that gets you going,


Ps: there are easier ways of doing this in Python, consider the "for" 

More information about the Tutor mailing list