Python String lower() & upper() Method

Python String lower( ) Method

  • The lower() methods returns the lowercased string from the given string. It converts all uppercase characters to lowercase. If no uppercase characters exist, it returns the original string.

Syntax:

  • string.lower()

Parameters: 

  • lower() does not take any parameters. 

Returns : 

  • It converts the given string in into lowercase and returns the string.

Python String upper( ) Method

  • The upper() methods returns the uppercased string from the given string. It converts all lowercase characters to uppercase.If no lowercase characters exist, it returns the original string.

Syntax:

  • string.upper() 

Parameters: 

  • upper() does not take any parameters. 

Returns : 

  • It converts the given string in into uppercase and returns the string.

 

 

 

 

 

 

 

 

Comments