user
Instruction: Create a function to check if an array contains an item.
Output:
assistant
def contains(array, item):
    for element in array:
        if element == item:
            return True
    return False