All String methods
First char of input string is changed to Upper case.
my_str="welcome to"
print(my_str.capitalize()) # Welcome to
We can't change the first char if it is a number
my_str="345 is the number"
print(my_str.capitalize()) # 345 is the number


No parameter is taken by this method.

All String methods

Post your comments , suggestion , error , requirements etc here

Python Video Tutorials
Python SQLite Video Tutorials
Python MySQL Video Tutorials
Python Tkinter Video Tutorials
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 All rights reserved worldwide Privacy Policy Disclaimer