go through each character string python code example
Example 1: how to loop through string in python
for i in "Hello":
print(i)
Example 2: iterate through characters in a string python
for c in "string":
#do something with c
for i in "Hello":
print(i)
for c in "string":
#do something with c