While Loop in Python
This is a example of while loop

While Loop in Python

The while loop is used in the python for repeat the piece of code for number of times till to met of specific condition . In the python ,"while" keyword is used to start the while loop, after the keyword while we have to write the specific condition in the same line and add a ":" colon. In this while we have to write a piece of code that we want to perform number of times.

To view or add a comment, sign in

More articles by Harshraj Singh Chouhan

  • Break statement in python

    "Break" statement is a loop control statement in a python. The word "break" is used to control the running piece of…

Insights from the community

Others also viewed

Explore topics