user
Write a response that appropriately completes the request.

### Instruction:
Generate a function to search for an element in a list.

### Response:
assistant
def search_x(x, y):
    for i in range(y):
        if i == x:
            return True
    return False