how to check if python object is a class code example
Example: how to check if a variable in python is a specific data type
isinstance(variable_name, class_name) #eg. isinstance(age, int) will return True
isinstance(variable_name, class_name) #eg. isinstance(age, int) will return True