Copyright © tutorialspoint.com

Python String lower() Method

previous next


Description:

This method returns a copy of the string in which all case-based characters have been lowercased.

Syntax:

str.lower()

Parameters:

Here is the detail of parameters:

Return Value:

It returns a copy of the string in which all case-based characters have been lowercased.

Example:

#!/usr/bin/python

str = "THIS IS STRING EXAMPLE....WOW!!!";

print str.lower();

This will produce following result:

this is string example....wow!!!

previous next

Copyright © tutorialspoint.com