http://beecoder.org/ru/python/while-loop-in-python
Пока цикл, Python