string=str("caPiTalIZE")
print(string.capitalize())
#output : Capitalize
capitalize() - Converts the first character to upper case # e.g. "grepper".capitalize() => "Grepper"
s = "hello openGeNus"
t = s.title()
print(t)
PythonCopy
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)