Printing one character at a time from a string, using the while loop

I’m quite sure, that the internet is full of python while-loops, but one example:

i=0

while i < len(text):
    print text[i]
    i += 1

Leave a Comment