Function Details: lower
Description
Return a copy of the string converted to lowercase.
Extended Description
lower function in Python is a string manipulation function that creates a new string with all characters converted to lowercase. Essential for text processing, data cleaning, and case-insensitive comparisons. Unlike upper, it transforms all uppercase letters to their lowercase equivalents while leaving other characters unchanged. Often used in data preprocessing, user input validation, and text normalization tasks. Frequently paired with strip for comprehensive string cleaning or casefold when dealing with international text. Works seamlessly with ASCII and Unicode characters, though for more specialized Unicode handling, consider using casefold. The transformation is non-destructive, creating a new string instance rather than modifying the original.
Read More about lower from Python Documentation
Function Signature
Module: builtins
Class: str
Parameters
Return
Returns a new string with all cased characters converted to lowercase.
Return Type
str
Output
Explanation
This example demonstrates the basic usage of lower(). It converts all uppercase letters to lowercase.