I need to write a "store". I have class ClothingItem -- Shoe, Pant and Shirt all inherit from ClothingItem. Now I'm working on class Inventory(list). I can add shoes and pants and shirts, and get a total count (inventory.len()). Now Dad wants me to tell him how many shoes are in inventory, how many pants, whatever. He says that if my store starts selling Shorts or Leggings, I'm not allowed to touch my Inventory class. He said something about passing a TYPE to the length function, but I can't figure out how to ask Google that. He works in C# so he only knows how to do it in that, not in Python.
So... can someone PLEASE tell me where to look to figure this out? He said if you post code he'll know and just make me do something harder, so please don't send me code! Just tell me where I should look and I'll be super-awesome grateful.