1 Answers
When you defined class and you want to ignore class at that time, pass is used. Let’s see one example.
class Computer:
pass
c1 = Computer()
print(id(c1))
Otherwise you will face error, if you not use pass. The error will be.
IndentationError: expected an indented block.
To keep the class empty, pass is used.