On 23 June 2013 03:49, Gene Heskett <ghesk...@wdtv.com> wrote: > On Saturday 22 June 2013 22:46:51 christheco...@gmail.com did opine: > > > Writing simple program asking a question with the answer being > > "yes"...how do I allow the correct answer if user types Yes, yes, or > > YES? > > > > Thanks > > AND each character coming in from the keyboard with $DF before adding it to > the comparison buffer. Makes it all uppercase. Then compare it to the > uppercase YES. > > Cheers, Gene >
Hello, the 1970s called and want their hairstyles back! That is *terrible* practice in a modern high-level language. Use the library functions. They will take proper account of the character set being used (which you shouldn't even have to know for a task like this, let alone make unsafe assumptions about). -- Tim Rowe
-- http://mail.python.org/mailman/listinfo/python-list