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?
asimpletest -> Asimpletest
aSimpleTest -> ASimpleTest
@saua is right, and
str = str[:1].upper() + str[1:]
will work for any string