May-12-2018, 01:02 AM
In this preliminary while loop, the user is asked to input an advantage. If they input 1,2, or 3 they while loop should say "Your stats been updated" and it does. But it also does for anything else, which I don't want it to do. Any help is appreciated.
valid = {'1', '2', '3'} advantage = " " while advantage not in valid: advantage = input("Do you pick extra health [1], extra luck [2], or extra power [3]") break print ("Your stats have been updated")Thanks in advance