Python Strings


Python String title() Method

  • The title( ) method returns a string where the first character in every word is upper case. Like a header, or a title.

  • If the word contains a number or a symbol, the first letter after that will be converted to upper case.


  • string.title()  

Parameter Values

  • No parameters.

Python len() Function

  • The len( ) function returns the number of items in an object.

  • When the object is a string, the len( ) function returns the number of characters in the string.


  • len(object)  

Parameter Values

object        :     Required. An object. Must be a sequence or a collection







Post a Comment

Post a Comment (0)