i am trying to make a faux voting system but it wont deny non-acceptable answers (SOLVED) [duplicate]
no matter what i have tried so far, it just wont deny non-valid answers (say if you were to put F in) vote=input('Please input your vote, A, B, C, or D. ') if vote == 'A' or 'B' or 'C' or 'D': print('You voted for ', vote,'!') else: print('Please retry with a valid vote. ') #i was able to figure it out vote=input('Please input your vote, A, B, C, or D. ') if vote == 'A' or vote == 'B' or vote == 'C' or vote == 'D': print('You voted for ', vote,'!') else: print('Please pick a valid vote next time. ') #the fixed code
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.