Python issubclass() function
Published February 16, 2022The Python issubclass() function is a built-in function that determines whether a specified class is a subclass of another class. The Python issubclass() function returns true if the class specified in the first argument is a subclass of the class given in the second argument and false otherwise.
The issubclass() Syntax
The syntax of the issubclass is:
issubclass(class, classdescription) |
where
class: is the class to be reviewed
classdescription: lists the class, class turple , class type
Example
class Course: |
Output
True |
Article Contributed By :
|
|
|
|
237 Views |