Isinstance method in Python

what is the use of isinstance and how to use it

I guess you’re talking about this ? Some more info would be better here …

1 Like

Python isinstance() function returns True if the specified object is of the specified type, otherwise False . If the type parameter is a tuple, this function will return True if the object is one of the types in the tuple.