lower() string method in Python
The lower() is a built-in string method converts all characters of a string to lowercase.
Syntax string.lower()
Example:
Python
text = "HELLO WORLD" print(text.lower()) # Output: hello world
Special Note: • Returns a new string.
• Useful for case-insensitive comparisons.