Python Pass Statement


pass is a null operation.When it is executed nothing happens.So it is used when astatement is required syntactically but no code needs to be executed.More importantlypython is a indentation based language so needed some kind of statement to represent nothing, so code does not get messed up.

No comments:

Post a Comment