pass prevents a Python function without any code from returning an error.
Solution for How to use pass in Python : You can use pass in an empty function Use the pass keyword in an empty function to act as a placeholder. Without pass, an empty function will result in an IndentationError.