Question:

Why Is The “Pass” Keyword Used For In Python?

Answer:

The “pass” keyword is a no-operation statement in Python. It signals that no action is required. It works as a placeholder in compound statements which are intentionally left blank.

>>> if x==0:
        pass
    else:
        print "x!=0"

 


Keywords:

© 2017 QuizBucket.org