#!/usr/bin/python3
'''Python in Holberton'''


def inherits_from(obj, a_class):
    '''
    returns True if the object is an instance of
    a class that inherited (directly or indirectly)
    from the specified class ; otherwise False.
    '''
    if type(obj) is not a_class:
        return issubclass(type(obj), a_class)
    return False
