Your code won't work because of the "continue". Continue is not needed for a while loop unless you want to skip parts of the while loop when a condition within the loop itself is met.
What you must do: Remove continue, and add an indent to all those statements within the while loop (i.e everything below while loop).
What is actually happening: The 'to be looped' is not even being considered within the loop. And even if it were, continue would make it so that they were never executed.
Continue makes it so that the other parts of the loop iteration are not executed.