title()

title(): Change First letter of each word to upper case
my_str='welcome to plus2net python section'
output=my_str.title()
print(output)

my_str='welcome #id 15of  plus2net'
output=my_str.title()
print(output)
Output
Welcome To Plus2Net Python Section
Welcome #Id 15Of  Plus2Net
This also changes the first char after any number of special chars ( check plus2Net ) All String methods



plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer