Python String lower() Method


Contents

Description

The lower() method in Python String returns a copy of the string where all the case-based characters have been lowercased i.e. the lower() function in Python converts all the uppercase characters within a string into the lowercase characters and then returns it. The lower() method here returns a string with all the characters in lower case.Symbols and Numbers here are ignored.

Syntax

Here is the syntax for lower() method:

str.lower()

Parameters

  • NA

Return Value

This method in Python String is responsible for returning a copy of the string where every case-based character is a lowercase.

Example

The following example shows the usage of lower() method.

#!/usr/bin/python

str = "THIS IS STRING EXAMPLE....WOW!!!";
print str.lower()

When we run above program, it produces following result:

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

Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.



Navigation
Tutorial
Tutorial
Tutorial