a green screen with some words on it
Save

Coding For Beginners Python - Learn the Basics - Loops

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.
WhisperCoding
whisperCoding
1k followers

Comments

No comments yet! Add one to start the conversation.