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 |