Python string swapcase( )

0

Python string swapcase()

  • The string swapcase() method converts all uppercase characters to lowercase and vice versa of the given string, and returns it.

Syntax

  • string_name.swapcase( ) 

Parameter

  • The swapcase() method does not takes any parameter.

Return value

  • The swapcase() method returns a string with all the cases changed. 

   

Post a Comment

0Comments
Post a Comment (0)