In python, the pass statement is just a null statement, and it useful when you perform nothing even after execution.
If you want to create a function or loop with an empty body for a future purpose, the compiler will not allow it, but by using a pass statement you can create a function or loop without any implementation.
Following is the example of using a pass statement in python for loop to do nothing even after execution.
When you execute the above python program, you will get the result as shown below.
If you observe the above result, even after executing the pass statement inside of for loop, it continued the statements' execution.
Same as for loop, you can use pass statements to define empty functions, classes, etc. based on your requirements.