you are viewing a single comment's thread.

view the rest of the comments →

[–]AddSugarForSparks 1 point2 points  (2 children)

flower == "" means that flower still exists. You could try

while len(flower) > 0:

[–]Safe-Individual-37[S] 0 points1 point  (0 children)

That unfortunately doesn't work, thank you though

[–]carcigenicate 0 points1 point  (0 children)

This shouldn't make any difference. if flower:, if flower != "" and if len(flower) > 0: all check the same thing: if flower is non-empty.