Friday, March 9, 2018

String lower() Method


String lower() Method in Python 3


The method lower() returns a copy of the string in which all case-based characters have been lowercased.

Syntax
str.lower()

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

Example
#!/usr/bin/python3
str = "THIS IS STRING EXAMPLE....WOW!!!"
print (str.lower())



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