Python String – capitalize() method

This is a string method that returns the first character to uppercase of the given string. It keeps rest of all the characters to lower case. Syntax: string.capiltalize() Example 1: s = “codewindow is a tech website.” x = s.capitalize() print(x) Output: Codewindow is a tech website. Explanation: Here the first character of the string […]

Python String – capitalize() method Read More »