The capitalize Method in Python: Converting the First Letter of a String to Uppercase

The capitalize method returns a copy of a string with the first letter in uppercase and the rest in lowercase.

capitalize()

'START WITH A CAPITAL'.capitalize()  # Start with a capital