How do you compare two strings insensitive in Python?

Python string has a built-in lower() method that converts all the characters in the string to the lower case. It returns a string with all the characters converted into lower case alphabets. We can convert two strings to the lower case with the lower() method and then compare them case-insensitively .

Sizin İçin Seçtik  Apenft ne işe yarıyor?

Leave a Reply

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

How do you compare two strings insensitive in Python?

Python string has a built-in lower() method that converts all the characters in the string to the lower case. It returns a string with all the characters converted into lower case alphabets. We can convert two strings to the lower case with the lower() method and then compare them case-insensitively .

Sizin İçin Seçtik  How do you lowercase an array?

Leave a Reply

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