
    Design a content moderation function that checks if a given post ID exists in the database of previously flagged harmful content and returns both whether the post has been flagged and its position in the flagged database (or -1 if not found). The function must take two parameters: a list of flagged post IDs and the post ID being checked, and return a tuple containing a boolean indicating if the post is flagged and the index position of the post in the flagged database.
    

    
def sequential_search(dlist, item):
    """
    Design a content moderation function that checks if a given post ID exists in the database of previously flagged harmful content and returns both whether the post has been flagged and its position in the flagged database (or -1 if not found). The function must take two parameters: a list of flagged post IDs and the post ID being checked, and return a tuple containing a boolean indicating if the post is flagged and the index position of the post in the flagged database.
    

    """
def sequential_search(dlist, item):
    """
    Design a content moderation function that checks if a given post ID exists in the database of previously flagged harmful content and returns both whether the post has been flagged and its position in the flagged database (or -1 if not found). The function must take two parameters: a list of flagged post IDs and the post ID being checked, and return a tuple containing a boolean indicating if the post is flagged and the index position of the post in the flagged database.
    

    """
    pos = 0
    found = False
    while pos < len(dlist) and (not found):
        if dlist[pos] == item:
            found = True
        else:
            pos = pos + 1
    return (found, pos)