Str.capitalize returns the first letter in upper case and rest in lower case as shown below

a is string

a=’apple’

a.capitalize()

Returns First letter in Upper case.

Output:’Apple’

str.capitalize
Str.Capitalize

 

By SC

One thought on “Str.Capitalize”

Leave a Reply

Your email address will not be published. Required fields are marked *