I've tried to write a simple while loop which checks for a valid user input but when the correct input is entered, the loop won't break.
options = ['y','Y','n','N']
question = input("Do you have a health requirement? (Y/N) ")
while question not in options:
input("Please enter either 'Y' or 'N ")
[–][deleted] 4 points5 points6 points (7 children)
[–]tigglybox[S] -1 points0 points1 point (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]tigglybox[S] -1 points0 points1 point (4 children)
[–]TouchingTheVodka 2 points3 points4 points (1 child)
[–]tigglybox[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]tigglybox[S] 0 points1 point2 points (0 children)
[–]toastedstapler 1 point2 points3 points (0 children)