Constant dripping wears away a stone


Loopsin Python allow to execute a statement or a block of statements repeatly until the loop condition is broken.

  • while loop: While the condition(s) in a while statement is (are) satisfied, the statement(s) will be executed until the condition(s) is (are) broken.
  • for in loop: A block of statements of afor inloop statement iterates over an iterator or a range.
  • Nested loop: A loop inside another loop.