def get_name(id_num):
    """
    Return the first and last name associated with an ID.

    :param id_num: the id number to search for
    :return: a tuple of the (first_name, last_name), or (None, None) if not found
    """
    with open("database.txt", "r") as f:
        for line in f:
            line = line.rstrip()
            id_num_string = str(id_num)
            if not line:
                continue
            first, last, _id = line.split(", ")
            if id_num_string == _id:
                return first, last
    return None, None