How do you ignore a case while comparing strings in Python?

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.

Sizin İçin Seçtik  What is anagram C program?

Leave a Reply

Your email address will not be published. Required fields are marked *

How do you ignore a case while comparing strings in Python?

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.

Sizin İçin Seçtik  How do you use HTML on a website?

Leave a Reply

Your email address will not be published. Required fields are marked *