SlideShare a Scribd company logo
3
Most read
5
Most read
6
Most read
Jump
Statements
Types of Jump
Statements
Break
Continue
Pass
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
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.
SYNTAX
def passMethod():
pass
print('hello')
OUTPUT
hello
Example without using
pass statement
def myMethod():
print('hello')
Traceback (most recent call last):
File "python", line 3
print('hello')
IndentationError: expected an indented block
Output
For more presentation in any
subject please contact us on
raginijain0208@gmail.com
Jump statment in python

More Related Content

PPTX
Python-Encapsulation.pptx
PPTX
Unit 4 python -list methods
PPTX
queue & its applications
PPTX
Inline function
PPTX
Constructor in java
PPT
1.1 binary tree
PPTX
Data Structures - Lecture 7 [Linked List]
PPT
Python-Encapsulation.pptx
Unit 4 python -list methods
queue & its applications
Inline function
Constructor in java
1.1 binary tree
Data Structures - Lecture 7 [Linked List]

What's hot (20)

PPTX
Sparse matrix and its representation data structure
PDF
Constructors and Destructors
PDF
Operators in python
PDF
Symbol table in compiler Design
PPTX
Stacks and Queue - Data Structures
PPTX
PPTX
Multiplication algorithm
PDF
Arrays in python
PPTX
Normal forms
PPTX
Data Structures : hashing (1)
PPTX
Specification-of-tokens
PPT
BINARY TREE REPRESENTATION.ppt
PPT
Abstract data types
PPTX
Java(Polymorphism)
PPTX
Relational Algebra,Types of join
PPTX
Formatted Console I/O Operations in C++
PPTX
Python Exception Handling
PPT
Oracle Database Trigger
PPTX
Operators in Python
PPTX
6-Practice Problems - LL(1) parser-16-05-2023.pptx
Sparse matrix and its representation data structure
Constructors and Destructors
Operators in python
Symbol table in compiler Design
Stacks and Queue - Data Structures
Multiplication algorithm
Arrays in python
Normal forms
Data Structures : hashing (1)
Specification-of-tokens
BINARY TREE REPRESENTATION.ppt
Abstract data types
Java(Polymorphism)
Relational Algebra,Types of join
Formatted Console I/O Operations in C++
Python Exception Handling
Oracle Database Trigger
Operators in Python
6-Practice Problems - LL(1) parser-16-05-2023.pptx
Ad

Similar to Jump statment in python (20)

PPTX
Python decision making_loops_control statements part8
PPTX
Break,Pass and Continue.pptx
PPTX
BREAK AND CONTINUE.pptx
PPTX
This is all about control flow in python intruducing the Break and Continue.pptx
PPTX
break continue and pass in python progran.pptx
PPTX
a1 this is in python that has break continue and pass.pptx
PDF
Break, Continue and Pass in Python.pdf
PDF
python program
PPTX
break continue and pass statement in python.pptx
PPTX
TN 12 computer Science - ppt CHAPTER-6.pptx
DOC
Jumping statements
PPTX
PyClassDay13.pptx
PPTX
6 Iterative Statements.pptx
PPT
presentation_jumping_statements_.ppt
PPT
9 cm604.13
PPTX
Loop control structure
PPTX
While_for_loop presententationin first year students
PDF
While-For-loop in python used in college
DOCX
iterations.docx
PDF
PYTHON FULL TUTORIAL WITH PROGRAMMS
Python decision making_loops_control statements part8
Break,Pass and Continue.pptx
BREAK AND CONTINUE.pptx
This is all about control flow in python intruducing the Break and Continue.pptx
break continue and pass in python progran.pptx
a1 this is in python that has break continue and pass.pptx
Break, Continue and Pass in Python.pdf
python program
break continue and pass statement in python.pptx
TN 12 computer Science - ppt CHAPTER-6.pptx
Jumping statements
PyClassDay13.pptx
6 Iterative Statements.pptx
presentation_jumping_statements_.ppt
9 cm604.13
Loop control structure
While_for_loop presententationin first year students
While-For-loop in python used in college
iterations.docx
PYTHON FULL TUTORIAL WITH PROGRAMMS
Ad

More from RaginiJain21 (8)

PPTX
Looping statement in python
PPTX
Conditionalstatement
PPTX
Python media library
PPTX
Basic python programs
PPTX
Python Libraries and Modules
PPTX
Data types in python
PPTX
Python second ppt
PPTX
Final presentation on python
Looping statement in python
Conditionalstatement
Python media library
Basic python programs
Python Libraries and Modules
Data types in python
Python second ppt
Final presentation on python

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Complications of Minimal Access Surgery at WLH
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Presentation on HIE in infants and its manifestations
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
O7-L3 Supply Chain Operations - ICLT Program
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
102 student loan defaulters named and shamed – Is someone you know on the list?
Microbial diseases, their pathogenesis and prophylaxis
Complications of Minimal Access Surgery at WLH
Module 4: Burden of Disease Tutorial Slides S2 2025
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
01-Introduction-to-Information-Management.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Supply Chain Operations Speaking Notes -ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Presentation on HIE in infants and its manifestations
Chinmaya Tiranga quiz Grand Finale.pdf
Microbial disease of the cardiovascular and lymphatic systems
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pharma ospi slides which help in ospi learning
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS

Jump statment in python