Search
 
SCRIPT & CODE EXAMPLE
 

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')
Comment

casefold in python

string = "PYTHON IS AWESOME"
# casefold is used to lowercase the string
# print lowercase string
print("Lowercase string:", string.casefold())
Comment

casefold in python

my_str = "Hello from AskPython"
 
casefolded_str = my_str.casefold()
 
print(casefolded_str)
Comment

PREVIOUS NEXT
Code Example
Python :: django model queries 
Python :: infinite for loop in python 
Python :: NEW CALENDAR MODULE 
Python :: Odd number without loop in python 
Python :: how split text in python by space or newline with regex 
Python :: python array drop item 
Python :: round() function in python 
Python :: how to make spinning donut on python 
Python :: label encoding of a column in python 
Python :: pythagore 
Python :: Python Tkinter ListBox Widget Syntax 
Python :: how to create Varible in python 
Python :: turtle write function in turtle package python 
Python :: how to convert .py into .exe through pytohn scripts 
Python :: python all any example 
Python :: detect grayscale image in python opencv 
Python :: combine for and if python 
Python :: pyhon 
Python :: smma python 
Python :: import turtle t=turtle.turtle() def star(t): for t in range(5): t.color("red") t.pendown() t.begin_fill() t.forward(100) t.right(144) t.end_fill() 
Python :: how to print 2d neatly in python 
Python :: pandas Timedelta to postgres 
Python :: deduplication jaccard python 
Python :: taggablemanager serializer django 
Shell :: chrome remote debug 
Shell :: stop apache server 
Shell :: mac restart audio driver 
Shell :: git set email for project 
Shell :: install openzeppline 
Shell :: npm show registry 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =