python iterate over string by substring code example Example: python iterate over string word = "test" for letter in word: print(letter)