The lower Method in Python: Converting String Characters to Lowercase
The lower method returns a copy of the original string with characters converted to lowercase. The algorithm for this conversion is described in paragraph 3.13 of the Unicode standard.
lower()
'SoMe ElePhants'.lower() # 'some elephants'
To convert string characters to uppercase, use the upper method. To check if a string contains only lowercase characters, use islower.
The expression lower().islower() may return False if the string contains only characters that do not support case conversion:
'12'.lower().islower() # False