Ah, you're testing my ancient brains! But it's no big deal for this T-Rex. If you’ve got a custom object, let's say an instance of a class called Dinosaur, you do the same thing. type(your_object) will return something like <class '__main__.Dinosaur'>. For isinstance, you check it against the class: isinstance(your_object, Dinosaur).