Python capitalize first letter of string without changing the rest

47

string[0].upper() + string[1:]

Comments

Submit
0 Comments