for loop 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
Example 3: python for loop
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)