I'm new to programming/Python. I'm trying to create a function that will add a word to a list. I tried to use a while loop to add ask if the user wants to add another word. If the user inputs 'y' or 'Y' I want to run the function again. If the user inputs anything else, I want the function to return the list. When I run the function, it continues to run the function again no matter what is input. Please help. Thanks
def add_list():
x = []
first_list = raw_input('Please input a word to add to a list ')
x.append(first_list)
response = raw_input('Would you like to enter another word ')
while response == 'y' or 'Y':
add_list()
else:
return x