def is_correct(level, user):
    """Checks if user input matches level sequence"""
    if len(level) != len(user):
        return False
    for i in range(len(level)):
        if level[i] != user[i]:
            return False
    return True
