how to traverse through string in 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