pass in python
# pass in python is basically a placeholder thing to put in empty functions/classes # example def whatever(): pass class whatever(): pass
Python pass Statement
'''pass is just a placeholder for functionality to be added later.''' sequence = {'p', 'a', 's', 's'} for val in sequence: pass
pass in python
def myEmptyFunc(): # do nothing pass myEmptyFunc() # nothing happens ## Without the pass keyword # File "<stdin>", line 3 # IndentationError: expected an indented block
Source: www.interviewbit.com