Learn How to Code using Python Day 6. Here in this post, you will learn about Python loops. 1. Python has two primitive loop commands: while loops for loops 2. With the while loop we can execute a set of statements as long as a condition is true. 3. With the break statement we can stop the loop even if the while condition is true. 4. With the continue statement we can stop the current iteration, and continue with the next. 5. With the else statement we can run a block of code once when the condition no longer is true. 6. A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string). 7. With the for loop we can execute a set of statements, once for each item in a list, tuple, set etc. 8. Similarly to while loop, a for loop