Converting Strings to Lowercase in Python
The simplest way to convert a string to lowercase is using the lower() method: >>> “Hello World”.lower() ‘hello world’ >>> “ABC”.lower() ‘abc’ >>> “abc”.lower() ‘abc’ The lower() method returns a new string with all uppercase characters converted to lowercase. The original string remains unchanged — strings are immutable in Python. Basic Usage text = “Python…
