lower() to ignore case . Call str. lower() to lowercase all characters in a string. Use this when comparing two strings to ignore case.
Read moreAre Python cases insensitive?
Python strings are case sensitive , so these equality check methods are also case sensitive.
Read moreHow do you make a case 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 .4 Şub 2021
Read more