Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
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.
