I\'m looking for ignore case string comparison in Python.
I tried with:
if line.find(\'mandy\') >= 0:
but no success for ignore
Try:
if haystackstr.lower().find(needlestr.lower()) != -1: # True