Jan-27-2018, 02:28 PM
Hello and welcome to Python and the forums!
You can split the string, use capitalize() only on first word, and then put strings back together.
You can also use string's
You can split the string, use capitalize() only on first word, and then put strings back together.
You can also use string's
upper()
method. It changes all characters in string to upper case. So you can slice the string and change only first character to upper, and leave the rest as they are.