use find to get loop through string python code example
Example 1: python iterate over string
word = "test"
for letter in word:
print(letter)
Example 2: how to loop through string in python
for i in "Hello":
print(i)
word = "test"
for letter in word:
print(letter)
for i in "Hello":
print(i)