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

swapcase():-

             The swapcase() method returns a string where all the upper case letters are lower case and vice versa.

Syntax:-                       string.swapcase()

txt = “Hello My Name Is AKHILESH”

x = txt.swapcase()

print(x)

Output

hELLO mY nAME iS akhilesh

 

error: Content is protected !!