In this tutorial, we are going to learn about how to uppercase the first letter of a string in Python.
To uppercase the first letter of a string, we can use the built-in capitalize() method in Python.
The capitalize() method returns the string where the first character is converted to uppercase and remaining is converted to lowercase.
Here is an example:
name = "gowtHam"; a = name.capitalize(); print(a);