import string S = "All animals are equal but some animals are more equal than others." #capitalize all words in string S print(string.capwords(S))cap = "hello world".title() print(cap) 'Hello World' 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)string=str("caPiTalIZE") print(string.capitalize()) #output : Capitalize capitalize() - Converts the first character to upper case # e.g. "grepper".capitalize() => "Grepper"message="hi" print(message) print(message.upper())# plz suscribe to my youtube channel --> # https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A Text = "python is easy" print(Text.capitalize()) ####output#### Python is easy# Python string capitalization string = "this isn't a #Standard Sntence." string.capitalize() # "This isn't a #standard sentence." string.upper() # "THIS ISN'T A #STANDARD SENTENCE." string.lower() # "this isn't a #standard sentence." string.title() # "This Isn'T A #Standard Sentence."/** * Capitalizes first letters of words in string. * @param {string} str String to be modified * @param {boolean=false} lower Whether all other letters should be lowercased * @return {string} * @usage * capitalize('fix this string'); // -> 'Fix This String' * capitalize('javaSCrIPT'); // -> 'JavaSCrIPT' * capitalize('javaSCrIPT', true); // -> 'Javascript' */ const capitalize = (str, lower = false) => (lower ? str.toLowerCase() : str).replace(/(?:^|\s|["'([{])+\S/g, match => match.toUpperCase()); ;x = txt = 'hi this is hussein asadi from iran ' x = txt.capitalize() print (x)