Compare strings by ignoring case using Python As both the strings has similar characters but in different case. So to match these strings by ignoring case we need to convert both strings to lower case and then match using operator == i.e. It matched the strings in case in sensitive manner.
Read moreWhich method is used to compare two strings ignoring the case Mcq?
Explanation: The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters.
Read more