Python Loops: Using the Else Clause and Jump Statements by@aswinbarath
658 reads

Python Loops: Using the Else Clause and Jump Statements

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@aswinbarath

Aswin Barath

Freelancer | Community Leader | Web Developer | Blogger


Receive Stories from @aswinbarath

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!