I\'m looking for ignore case string comparison in Python.
I tried with:
if line.find(\'mandy\') >= 0:
but no success for ignore
If you don't want to use str.lower(), you can use a regular expression:
str.lower()
import re if re.search('mandy', 'Mandy Pande', re.IGNORECASE): # Is True