python whileloop with break,continue,pass and else statements

Publié le: 03 January 2015
sur la chaîne: shivaji chowdary
1,436
9

this video explians the python whileloop with break,continue,pass and else statements.

1.what is whileloop in python?
a whileloop statement in python programming language repeatedly
executes the statements in the whileloop untill as long as the given condition is true.
Note:1.if the condition in the whileloop never becomes false it
executes infinitely and never ends.
if you dont get what whileloop is see this video    • python while loops  

2.what is break statement?
the break statement is used to get out of current loop,if a certain
condition meets it stops the execution of loop further and executes
the statements after that loop.

3.what is continue statement in python?
if a continue statement is encountered in whileloop the it stops the execution of all statements in that iteration and gives control back to the loop.

4.what is pass statement in python?
the pass statement do nothing,we often use it in functions,which will be implemented in future

5.what is else statement in python?
the else statement can be used with a while loop,the code in the else block executes when the condition in the while loop becomes false.


if you still have doubts post them in comments.

if you like this video please like n subscribe


Sur cette page du site, vous pouvez voir la vidéo en ligne python whileloop with break,continue,pass and else statements durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur shivaji chowdary 03 January 2015, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,436 fois et il a aimé 9 téléspectateurs. Bon visionnage!