Pass is a statement that is equivalent to NULL The difference between comment and pass statement is that comment is completely ignored by the interpreter while pass is not ignored.
when Pass is executed nothing happens.It is used when we are anticipating some further development in function or class in later phases but we cannot keep it empty right now.
Example :-
class example:
pass
def example(args):
pass
when Pass is executed nothing happens.It is used when we are anticipating some further development in function or class in later phases but we cannot keep it empty right now.
Example :-
class example:
pass
def example(args):
pass
No comments:
Post a Comment