Which function is used to determine the type of object?

There are two built-in functions that help you identify the type of an object. You can use type() if you need the exact type of an object, and isinstance() to check an object’s type against something.

Leave a Reply

Your email address will not be published. Required fields are marked *