Skip to content

Codewithakash123/loops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Loops are used to repeat a block of code multiple times. Python mainly uses for loop and while loop

for loop: Used to iterate over a sequence (list, tuple, string, range). Runs for a fixed number of times. Commonly used when the number of iterations is known.

while loop: Executes as long as a condition is true. Used when the number of iterations is not fixed. Condition must be updated to avoid infinite loops.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages