Does anyone know of a really simple way of capitalizing just the first letter of a string, regardless of the capitalization of the rest of the string?
For example:>
You can use the str.capitalize() function to do that
In [1]: x = "hello" In [2]: x.capitalize() Out[2]: 'Hello'
Hope it helps.