String is a sequence of characters. It's commonly used to represent text.
There are number of methods defined in Python to work with strings.
str = "programiz" #capitalize first letter print('str.capitalize() = ', str.capitalize()) #computes length of a string print('len(str) = ', len(str))
All the methods defined in Python 3 are listed below along with brief descriptions.