Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • loop
  • until

Python - Loop until condition is true

Executes code until a given condition is valid.

0
636
  • Share on Facebook
  • Share on Google+
  • Share on Twitter
while not {{condition}}:
  {{body}}
python

Notes

last update: Oct. 25, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Counter loop
  • For each loop
  • Break out of loop
  • Do loop while a condition is true

Other language

  • Scala
  • PHP
  • Ruby

Random task

  • Range of alphabet chacters
  • Web page footer always bottom
  • Change git remote tracking branch
  • Ammend message unpublished commit
  • Function default parameter
  • Blog
  • About
  • License