Weird syntax error


My while loop isn't working correctly for a seemingly simple operation... could someone tell me why?

I expected the while loop to (pop()) the elements of the holder into the rev_holder but I get stuck at the while loop error stage.

def reverse(text):
    for i in range(0, len(text)):
    #print len(rev_holder)
    while len(holder) > 0
    print rev_holder


Missing : to start the block.

Did you know that we can convert a string to a list with list function?


god I am so stupid for not having realized that :open_mouth: thanks for the prompt response !


It happens to everyone. Don't be hard on yourself.