I'm trying to use the casefold() function in python and I end up with the following error:
if s1.casefold() == s2.casefold():
AttributeError: 'str' object has no attribute 'casefold'
code snippet:
s1 = 'Tatatata'
s2 = 'tatatata'
if s1.casefold() == s2.casefold():
print ("equal")