Programming with Python

  1. Home
  2. Docs
  3. Programming with Python
  4. Looping in python

Looping in python

Loops allow the execution of a statement or a group of statement multiple times. In order to enter the loop there are conditions defined in the beginning.

Once the condition becomes false the loop stops and the control moves out of the loop.

We use loops to reduce the size of the code. It reduces complexity of the code and makes it more efficient.

Articles

Was this article helpful to you? Yes No

How can we help?