on-internet
← Community

I am trying to make a faux voting system, but it won’t deny non-acceptable answers [duplicate]

Stack Overflow ·

No matter what I have tried so far, it just won’t 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. ')

Comments

Sign in or sign up to comment and upvote.

No comments yet.