iterate over string instead of character python code example
Example 1: python iterate over string
word = "test"
for letter in word:
print(letter)
Example 2: iterate through characters in a string python
for c in "string":
#do something with c