Saturday, December 29, 2018

Python - Pass Statement

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



No comments:

Post a Comment

Hadoop - What is a Job in Hadoop ?

In the field of computer science , a job just means a piece of program and the same rule applies to the Hadoop ecosystem as wel...