How does the while code works. | Sololearn: Learn to code for FREE!

+1

How does the while code works.

I tried using it but I always get errors

4/18/2021 5:46:11 PM

Sphiwe Nonkumbi

1 Answer

New Answer

+9

In Python, While Loops is used to execute a block of statements repeatedly until a given condition is satisfied. And when the condition becomes false, the line immediately after the loop in the program is executed. While loop falls under the category of indefinite iteration. Indefinite iteration means that the number of times the loop is executed isn’t specified explicitly in advance. https://code.sololearn.com/ct9mQ6zvJ68d/?ref=app