using the following program:
 
fruit = "banana"
index = 0
while index < len (fruit):
     letter = fruit[index-1]
     print letter
     index= index -1
 
this program is supposed to spell "banana" backwards and in a vertical patern...it does this....but after spelling "banana" it gives an error message:
refering to line 4: letter = fruit[index-1]
states that it is an IndexError and the string index is out of range
Anybody know how to fix this?


Yahoo! FareChase - Search multiple travel sites in one click.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to