Direction: Choose the correct option
Q1.
What are magic methods in Python?
Direction: Choose the correct option
Q2.
Which magic method is called when an object is created?
Direction: Choose the correct option
Q3.
What does `__str__` do?
Direction: Choose the correct option
Q4.
What is the difference between `__str__` and `__repr__`?
Direction: Choose the correct option
Q5.
Which magic method is called when you use `len(obj)`?
Direction: Choose the correct option
Q6.
What does `__call__` do?
Direction: Choose the correct option
Q7.
How do you make an object iterable?
Direction: Choose the correct option
Q8.
Which magic method is called when an attribute is accessed?
Direction: Choose the correct option
Q9.
What does `__enter__` and `__exit__` define?
Direction: Choose the correct option
Q10.
How do you define equality between objects?
