Python 3 Script to Capitalize First Character of String Using Upper() and Capitalize() Methods Full Tutorial For Beginners

You are currently viewing Python 3 Script to Capitalize First Character of String Using Upper() and Capitalize() Methods Full Tutorial For Beginners

 

Welcome folks today in this blog post we will be capitalize first character of String in python. All the full source code of the application is given below.

 

 

Capitalize Using Upper() Method

 

 

Now we will use the upper() method to capitalize first character of string.

 

app.py

 

 

 

 

 

Capitalize First Character Using capitalize method

 

app.py

 

 

 

Now if you execute the python script by typing the below command

 

python app.py

 

 

Leave a Reply