Jun-10-2019, 05:14 PM
(This post was last modified: Jun-10-2019, 05:16 PM by Leo_Tovell.)
For homework, ive been set a task to create a program which repeatedly asks the user if they need help. The question is asked over and over until the user either enters 'yes' or 'Yes'. I have tried everything to get it working. I just cant seem to get it to work... I have used square brackets to make a list under one variable containing 'yes' and 'Yes' i have even subsituted them for normal brackets... Help me please!
Heres the code: Loops arent my forté but its my best shot: My Document
Heres the code: Loops arent my forté but its my best shot: My Document
answer = ["yes","Yes"] userinput = (" ") while userinput != answer: userinput = input("Do you need help?") print("Heres your work!")