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  Pepsi Kola da alkol var mı?

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 compare two strings to ignore the case?

Leave a Reply

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