title(),capitalize(),lower(),upper()
String uppercase first letter, title strings can only be used above capitalize () the first character of the whole text of the capital upper () all uppercase letters lower () all lowercase letters
In [11]:
a=['tre','ert','dfr','dfg']
[name.title() for name in a]
Out[11]:
In [267]:
B = 'ab34ghf56kty' # in the interval of numbers is identified as a different string
print(b.title())
print(b.lower())
print(b.upper())
print(b.capitalize())
Out[267]: