Ollivander Primitive types are not your friends Really. Stop (ab)using just strings and integers! Yes, they're the building blocks of whatever you do. But if you abuse them, you're not taking full advantage of your Object Oriented programming language.
Ollivander Python: discover the type of an object This seems a simple enough question: How can I discover the type of any given Python object? Suppose Python 2.7 (Python 3 is a different beast on this topic), and try implementing