paint-brush
Python Loops: Using the Else Clause and Jump Statements by@aswinbarath
755 reads
755 reads

Python Loops: Using the Else Clause and Jump Statements

by Aswin Barath2mJanuary 14th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Python Loops: Using the Else Clause and Jump Statements can be used to repeat certain tasks using loops. The break statement, borrowed from C programming language, breaks out of the current loop when encountered. The continue statement continues with the next iteration of the loop. While loop repeats any given set of code until the condition becomes false with while loop. Else clause will be executed when the loop completes through all of the iterations with for loop and when the condition is false with loop. Jump statements can be. used when a statement is required syntactically but the program requires no action.

People Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Python Loops: Using the Else Clause and Jump Statements
Aswin Barath HackerNoon profile picture
Aswin Barath

Aswin Barath

@aswinbarath

Freelancer | Community Leader | Web Developer | Blogger

Learn More
LEARN MORE ABOUT @ASWINBARATH'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Aswin Barath HackerNoon profile picture
Aswin Barath@aswinbarath
Freelancer | Community Leader | Web Developer | Blogger

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Codenewbie
Learnrepo
Thetechstreetnow