def list_equal(list1, list2):
    """Compares two given lists. If one item in the two lists is different,
    the function returns false. If all items ate equal, returns True.
    """
    for i, item in enumerate(list1):
        if item != list2[i]:
            return False
    return True