Python String lower() MethodPython Functions


The lower() method converts all uppercase characters in the string to lowercase.

Example

#!/usr/bin/python3
# -*- coding: UTF-8 -*-

str = "ABCDRFG"
print(str.lower())

str = "aBCDEFG"
print(str.lower())

Output:

abcdrfg
abcdefg

Syntax

str.lower()

Parameters

This method doesn’t take any parameters.

Return Value

It returns the lowercased string from the given string.

© 2021 Programtips.org, all rights reserved. Privacy Policy | Contact Us