Question: What is the _getitem_ method in Python, and how is it used?
Answer: The _getitem_ method allows an object to retrieve items using the bracket notation (e.g., obj[key]). Implementing this method enables custom indexing behavior for classes, such as accessing elements in a collection