How to Check an Object’s Type in Python with type() and isinstance() | CodeTrail