I wouldn't use a list here. I would recommend removing the first line. In the third line, i would replace answer with 'yes'. Then in the fourth line, you could use .lower() to make all types of 'yes' to be recognized by the test in the while loop, whether it is with lowercase or uppercase.
Something like this:
Something like this:
userinput = ('') while userinput != 'yes': userinput = input("Do you need help? ").lower() print("Heres your work!")