In short
A while loop repeats a block of code as long as a condition is true. Python has no "repeat until" command, so you write while not condition to repeat until something happens.
The condition is checked before each repeat. If it is false at the start, the block never runs. Make sure something inside the loop changes the condition, otherwise the loop never ends. To repeat until a condition is true, test the opposite with while not done:, or use while True: with break when the condition is met.
This prints 11: money at interest doubles after about years.
Also searched as: repeat until in python, python repeat until, repeat until, python until.
Python labs run in your browser. Type the code, run it and see what happens.
Open a Python lab