capitalize() This function is used to capitalize the first letter of the string. Example: str=”hello world” print(str.capitalize()) Output: Hello world count(str, beg, end) This function is used to count the number of times str occurs in a string. We can ...
Home/built-in string methods and functions