numbers = [1, 2, 3, 4, 2, 5]
# check if numbers is instance of list
result = isinstance(numbers, list)
print(result)
# Output: True
isinstance(object, classinfo)
# if classinfo is a tuple of type objects (or recursively, other such tuples), return True
# if object is an instance of any of the types. If classinfo is not a type or tuple of types
# and such tuples, a TypeError exception is raised.
x = isinstance(5, int)
x = isinstance(5, int)
y = isinstance(6.5, int)
print(x)
print(y)
output:
True
False