Python While Loop Example Code For C