Jak zmienić ciąg na małą literę w Pythonie
my_str = "Hello World"
my_str.lower()
print(my_str) # outputs "hello world" on the terminal
ProCoderMove
my_str = "Hello World"
my_str.lower()
print(my_str) # outputs "hello world" on the terminal
message = 'PYTHON IS FUN'
# convert message to lowercase
print(message.lower())
# Output: python is fun
original = Hello, World!
#both of these work
upper = original.upper()
upper = upper(original)
str = 'HELLO'
print(str.lower())
#prints "hello"
startString = "TeST StrIng"
lowerCaseString = startString.lower()
print(lowerCaseString)
# Output -> "test string"
str1 = "HeLlO_wOrLd!"
str1.lower()
Output: 'hello_world!'