phrase = "How about that game?" ls = phrase.split() print ls ['How', 'about', 'that', 'game?'] for item in ls: print item How about that game? count = 0 for item in ls: count += 1 print count 4 word = "compsci101" for ch in word: print ch c o m p s c i 1 0 1 for ch in phrase: print ch H o w a b o u t t h a t g a m e ? print phrase How about that game? count = 0 for ch in phrase: count += 1 print count 20 print word compsci101 for ch in range(len(phrase)): print ch 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 phrase = "nutty sweet butter crazzzy bread" for index in range(len(phrase)): if index > 0: if phrase[index-1] == phrase[index]: print phrase[index-1:index+1] tt ee tt zz zz