I am trying to make it so that the question or sequence keeps getting repeated until user has named every day of the week and prints a message that congratulates the user after that. I am trying to use a while loop but I can't seem to get it to work. I have also tried using an if statement although it does work, it doesn't repeat the question and keep adding to the list continously.
This is the output that I am trying to get...
days = []
days2 = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
answer = input('Enter a day of the week: ')
while answer in days2:
days.append(answer)
print('%s has been added to our days of the week.' % answer)
print(days)
if answer in days:
print('Sorry already in our list.')
if answer
else:
print('Sorry %s is not a day of the week.' % answer)
This is what I have so far
Thank youu :D