12.e - Loops in string

Loop through a String

Strings are arrays and arrays are iterable. Thus we can loop through strings.
## Example:

alphabets = "ABCDE"
for i in alphabets:
    print(i)

# Output :
A
B
C
D
E

Note