>>> import re
>>> re.findall('[A-Z][^A-Z]*', 'TheLongAndWindingRoad')
['The', 'Long', 'And', 'Winding', 'Road']
>>> re.findall('[A-Z][^A-Z]*', 'ABC')
['A', 'B', 'C']
string=str("caPiTalIZE")
print(string.capitalize())
#output : Capitalize
message="hi"
print(message)
print(message.upper())
capitalize() - Converts the first character to upper case # e.g. "grepper".capitalize() => "Grepper"
x = txt = 'hi this is hussein asadi from iran '
x = txt.capitalize()
print (x)
text ="welcome to PYTHON Tutorial"
# capitalizes the first letter in string
# and keeps the rest of the string in lowercase
captialized_text= text.capitalize()
print(captialized_text)