About 22,600,000 results
Open links in new tab
  1. Python - While false loop - Stack Overflow

    Mar 13, 2014 · Try while not fn: instead. The condition is the loop is actually a "pre-" condition (as opposed to post-condition "do-while" loop in, say, C). It tests the condition for each iteration …

  2. Python While Loops - W3Schools

    Python has two primitive loop commands: With the while loop we can execute a set of statements as long as a condition is true. Note: remember to increment i, or else the loop will continue …

  3. Python While Loop - GeeksforGeeks

    Dec 10, 2024 · Python While Loop is used to execute a block of statements repeatedly until a given condition is satisfied. When the condition becomes false, the line immediately after the …

  4. While Loop - PythonHello

    Make sure to include a condition in the while loop that will eventually become False, otherwise the loop will become infinite and will never terminate. Make sure to indent the loop body properly, …

  5. Python While Loop Tutorial – While True Syntax Examples and Infinite Loops

    Nov 13, 2020 · While loops are programming structures used to repeat a sequence of statements while a condition is True. They stop when the condition evaluates to False. When you write a …

  6. While Loops in Python | Aman Kharwal - thecleverprogrammer

    May 8, 2021 · While Loops provides a way to code general loops in any programming language. A while loop is typically used to repeatedly execute a block of code until the given condition …

  7. If we assign false to a variable and then use a while not loop, why …

    Nov 16, 2022 · # You set the variable "bidding_finished" to False. bidding_finished = False # Here you test in a while loop: # - If `bidding_finished` is **True** then `not bidding_finished` # must …

  8. Python while not True or False - Stack Overflow

    Aug 4, 2017 · You can also use while False with: met = True while met: someVar = str.lower(input()) if someVar == 'yes': someVar = True break if someVar == 'no': someVar = …

  9. Python While Loop | While True and While Else in Python

    Aug 6, 2021 · How to implement a Python while loop? What is a while true statement? How to use a while-else statement in Python. Python do while loops.

  10. While Loops - Problem Solving with Python

    The general form of a while loop in Python is below: while <logical_condition>: <code> The keyword while must be included, as well as a <logical_condition> which can be evaluated as …

  11. Some results have been removed
Refresh