python loop through characters of string code example Example: how to loop through string in python for i in "Hello": print(i)