title: similar function for strcmpi in python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/319426/how-do-i-do-a-case-insensitive-string-comparison-in-python">How do I do a case insensitive string comparison in Python?</a>  </p>
  </blockquote>
  
  
  
  <p>I wanted to know that if there is any function similar to <code>strcmpi</code> or some provision for it.</p>
  
  <p>Suppose if user enters word <code>harry potter</code> and my file has this word written in this form <code>Harry Potter</code>, so how can I compare it because it simply ignores this because of the upper and lower case letters .</p>
  
  <p>What if I want to convert an "instance" type object to str . How can I do that ? </p>