[PYTHON] Uppercase only the first letter

Use str.capitalize ()

In [1]: str = "abc"

In [2]: str.capitalize()
Out[2]: 'Abc'
In [3]: str = "1abc"

In [4]: str.capitalize()
Out[4]: '1abc'
In [5]: str = "#abc"

In [6]: str.capitalize()
Out[6]: '#abc'

Recommended Posts

Uppercase only the first letter
The first GOLD "JDBC"
The first GOLD "Function"
Kaggle for the first time (kaggle ①)
Kaguru for the first time
First Python 3 ~ The beginning of repetition ~
Get the first element of queryset
[For self-learning] Go2 for the first time
See python for the first time
Start Django for the first time
The first step in Python Matplotlib