4) c. Pass Statements

One of the least used statements in Python, the pass statement does nothing. The sole purpose of this statement is to do nothing. But even this lazy piece of code has its place in Python.

There are times when you want to leave parts of the code to be implemented later but due to the syntax rules of Python you can’t just leave that part blank. Something has to be there and this is where the pass statement comes into play.

This statement can also be used to ignore errors which is not recommended but will be covered in a later chapter.