Write a python function to check if an object is an instance of a given class


Topic: Write a python function to check if an object is an instance of a given class

Solution

def check_instance(derived_class, base_class):
    return(isinstance(derived_class, base_class))



List all Python Programs