You can use casefold() method. The casefold() method ignores cases when comparing.
firstString = "Hi EVERYONE"secondString = "Hi everyone"if firstString.casefold() == secondString.casefold(): print('The strings are equal.')else: print('The strings are not equal.')
Output:
The strings are equal.