print out each letter of a word

Gary Wessle phddas at yahoo.com
Fri Apr 28 01:01:31 EDT 2006


I am going through this tut from
http://ibiblio.org/obp/thinkCS/python/english/chap07.htm

I am getting errors running those 2 groups as below as is from the tut


thanks


 index = 0
 while index < len(fruit):
   letter = fruit[index]
   print letter
   index = index + 1

or

  
for char in fruit:
  print char 



More information about the Python-list mailing list