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

Delta Lake - Time Travel

  Time Travel allows you to query, restore, or compare data from a previous version of a Delta table. Delta Lake automatically keeps tra...