def compare_list(list1, list2):
    """
    It will compare two python lists and return boolean result
    """
    if isinstance(list1, list) and isinstance(list2, list):
        if len(list2) != len(list1):
            return False
        for list2_item in list2:
            if list2_item not in list1:
                return False
        for list1_item in list1:
            if list1_item not in list2:
                return False
        return True
    raise Exception('Invalid Data provided')
