0

What is the use of loop

In python

13th Sep 2020, 3:48 PM
Nikhil Nirwal
Nikhil Nirwal - avatar
2 Respostas
+ 1
Loops are used when we want to run same piece of code more than one time. As an example, you want to print 1 to 100, will you print them using print() ? Well, you can do this but still its a bad practice and increases LOC. Thus, we use loop.
13th Sep 2020, 4:03 PM
Alaska
Alaska - avatar