There are many ways to iterate over a string in Python:-
The first thing you can use a for loop to iterate over a given string like as follows:-
for c in "Delhi":
print(c)
Another way is to use enumerate()so If you need access to the index as you iterate through the string, by using enumerate() below is the code that explains the use of enumerate():-
for i, c in enumerate('Delhi'):
print(i, c)