TCCI > Blog > Python Coaching at TCCI > What is use of pass statement in Python?-tccicomputercoaching.com
What is use of pass statement in Python?-tccicomputercoaching.com
- February 18, 2020
- Posted by: Riddhi Dhandha
- Category: Python Coaching at TCCI
The pass statement . pass_stmt: “pass“. pass is a null operation — when it is executed, nothing happens.
Use the pass statement to indicate empty functions , classes and loops. With pass, we indicate a
“null” block. Pass can be placed on the same line, or on a separate line. Pass can be used to quickly add thingsthat are unimplemented.
for i in str:
print(“pass is executed:”)
pass is executed
To learn more about Python at TCCI.
Call us @ 9825618292
Visit us @ www.tccicomputercoaching.com