Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
About Lesson

capitalize():-

        The capitalize() method returns a string where the first character is upper case, and the rest is lower case.

Syntax:-       string.capitalize()

txt = “ak it solution!”

x = txt.capitalize()

print (x)                               

# Ak it solution!

txt = “28 is my age.”

x = txt.capitalize()

print (x)                               

# 28 is my age.

error: Content is protected !!