[Tutor] python question
kent37 at tds.net
Tue Nov 25 19:47:41 CET 2008
On Tue, Nov 25, 2008 at 12:45 PM, Daniel J Kramer
<constantfables at gmail.com> wrote:
> Hi Kent
> got it! Is it because Python must recognize the answer as lower case?
It's because you change the user input to lower case, so you have to
compare it against a lower case answer. Maybe this helps:
In : s="Abc"
In : s.lower()
In : s.lower() == "Abc"
In : s.lower() == "abc"
More information about the Tutor