Inventory initialized with a list of SKUs, implementing __contains__ (case-insensitive) so 'ABC' in inv works naturally. Store the SKUs lowercased in a set internally for O(1) checks.inv = Inventory(['Pen', 'Ink']); 'PEN' in inv
True
Membership is case-insensitive via the dunder.
__contains__(self, item) receives the left operand of in.
Lowercase both sides.