<jupyter_start><jupyter_text>All the IPython Notebooks in this lecture series by Dr. <NAME> are available @ **[GitHub](https://github.com/milaan9/04_Python_Functions/tree/main/002_Python_Functions_Built_in)**  Python `issubclass()`The **`issubclass()`** function checks if the class argument (first argument) is a subclass of classinfo class (second argument).**Syntax**:```pythonissubclass(class, classinfo)```  `issubclass()` Parameters**`issubclass()`** takes two parameters:* **class** - class to be checked* **classinfo** - class, type, or tuple of classes and types  Return Value from `issubclass()`**`issubclass()`** returns:* **`True`** if **`class`** is subclass of a class, or any element of the tuple* **`False`**  otherwise<jupyter_code># Example 1: How issubclass() works?

class Polygon:
    def __init__(polygonType):
        print('Polygon is a ', polygonType)

class Triangle(Polygon):
    def __init__(self):

        Polygon.__init__('triangle')
    
print(issubclass(Triangle, Polygon))
print(issubclass(Triangle, list))
print(issubclass(Triangle, (list, Polygon)))
print(issubclass(Polygon, (list, Polygon)))<jupyter_output>True
False
True
True
{'fraction_non_alphanumeric': 0.14763948497854076, 'fraction_numerical': 0.006008583690987125, 'mean_word_length': 6.379746835443038, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '23721', 'license': 'MIT', 'n_tokens_mistral': 383, 'n_tokens_neox': 360, 'n_words': 105, 'path': '002_Python_Functions_Built_in/036_Python_issubclass().ipynb', 'repo_name': 'ATrain951/01.python_function-milaan9', 'size': '1171'}