Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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 by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #pass #python
ADD COMMENT
Topic
Name
3+9 =