Possible Duplicate:
How do I do a case insensitive string comparison in Python?
I wanted to know that if there is any function similar to strcmpi
or some provision for it.
Suppose if user enters word harry potter
and my file has this word written in this form Harry Potter
, so how can I compare it because it simply ignores this because of the upper and lower case letters .
What if I want to convert an "instance" type object to str . How can I do that ?