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