Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = input('Y/n ')
- if a != 'n' or a != 'N':
- print('Yay')
- else:
- print('Nay')
- """
- In every case its going 'Yay', because in any case one condition becomes true
- it works, if i lower the input and
- change condition to >>> if a != 'n':
- Are there any other ways so i can achieve what i am looking for, or i have to use >>> if a.lower() != 'n':
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement