comment changer une chaîne en petite lettre en python
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
import string
print string.ascii_lowercaseOutputabcdefghijklmnopqrstuvwxyz
message = 'PYTHON IS FUN'
# convert message to lowercase
print(message.lower())
# Output: python is fun
str = 'HELLO'
print(str.lower())
#prints "hello"
startString = "TeST StrIng"
lowerCaseString = startString.lower()
print(lowerCaseString)
# Output -> "test string"
# String to Lowercase by Matthew Johnson
myStr = "LetS FiX ThiS."
print(myStr.lower())
#OUTPUT: "lets fix this."