I have recently noticed that some people are used to mark the end of rooms with the pass keyworkd as
for i in range(10):
There is no advantage. If the function has a body at all, adding
pass does nothing. It doesn't even do anything if there is no body, except to help the parser know that the empty body was intentional.
In real-world code, it's usually better to use a docstring than
pass to denote deliberately-empty code:
class MyExtraException(Exception): """Just another exception"""