I\'m looking for ignore case string comparison in Python.
I tried with:
if line.find(\'mandy\') >= 0:
but no success for ignore
You can use in operator in conjunction with lower method of strings.
in
lower
if "mandy" in line.lower():