str.lower()
The string is all lowercase. str.upper()
The string is all uppercase.
>>> str = 'my world, MY PYTHON'
>>> str.lower()
'my world, my python'
>>> str.upper()
'MY WORLD, MY PYTHON'
How can I make the stringcapitalize the first letter of each word
? Make str = 'My World, My Python
'
Reference article: Issues related to Python string operations
String case conversion