In this PPT you will learn about how to use jump statement.Using these jump statement you can jump in any statement.
You get a new presentation every Sunday at 10 AM.
Learn more about python by clicking on this given below link
Python Introduction- Python Introduction- https://www.slideshare.net/Rag...
In this PPT you will learn about how to use jump statement.Using these jump statement you can jump in any statement.
You get a new presentation every Sunday at 10 AM.
Learn more about python by clicking on this given below link
Python Introduction- Python Introduction- https://www.slideshare.net/RaginiJain21/final-presentation-on-python
Basic concept of Python -https://www.slideshare.net/RaginiJain21/python-second-ppt
Python Datatypes - https://www.slideshare.net/RaginiJain21/data-types-in-python-248466302
Python Library & Module - https://www.slideshare.net/RaginiJain21/python-libraries-and-modules
Basic Python Programs- https://www.slideshare.net/RaginiJain21/basic-python-programs
Python Media Libarary - https://www.slideshare.net/RaginiJain21/python-media-library
Conditional Statement- https://www.slideshare.net/RaginiJain21/conditionalstatement
Looping Statement- https://www.slideshare.net/RaginiJain21/looping-statement-in-python.
BREAK STATEMENT break statement is used to exit from the iterative statements (loops) such as for, while. Use case of this statement terminates the execution of loop immediately, and then program execution will jump to the next statements.
SYNTAX for var in sequence: statement1 statement2 if condition: break
example list = [1,2,3,4,5,6] a =0 b =0 for num in list : print num a+=num b+=1 if (b == 3): break print "sum is =%d"%(a) 1 2 3 sum is =6 Output
CONTINUE STATEMENT continue statement is used to continue the loop execution i.e. to get back to the top of the iterative statements (loops) such as for, while. Use case of this statement stops the further statement execution of loop immediately.
a=0 for b in range (1,7): a+=b b+=1 if (b == 5): continue print “b is:%d"%(b) print "sum is =%d"%(a) example
b is:2 b is:3 b is:4 b is:6 b is:7 sum is =22 output
PASS STATEMENT pass statement is used when programmer don’t want to execute a set of code. pass statement is null operation. So, nothing will happen when pass statement has been executed. Mostly, programmer uses the pass statement when they don’t want to execute the code, but they want the syntactical expressions. You use pass statement when you create a method that you don't want to implement, yet.