I\'m wanting to have a \"y/n\" in Python, which i\'ve successfully done, but I want the user to be able to input a \"y\" or a \"Y\" and it accepts both.
Here\'s a short
It is or as in
or
if yn == 'y' or yn == 'Y':.
if yn == 'y' or yn == 'Y':
Although a better method would be
if yn in ['y', 'Y']:
if yn.lower() == 'y':.
if yn.lower() == 'y':