Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

casefold in python

s1 = 'ß'
s2 = 'ss'
s3 = 'SS'
if s1.casefold() == s2.casefold():
    print('Casefolded strings of s1 and s2 are equal')
else:
    print('Casefolded strings of s1 and s2 are not equal')
 
if s1.casefold() == s3.casefold():
    print('Casefolded strings of s1 and s3 are equal')
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #casefold #python
ADD COMMENT
Topic
Name
4+6 =