Python type() vs isinstance(): Exact Types and Subclasses | CodeTrail