I am trying to make a faux voting system, but it won’t deny nonacceptable answers [duplicate]
No matter what I have tried so far, it just won’t deny nonvalid 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. ')
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.