swapcase() « All String methods
swapcase(): Upper case chars to Lower case and and vice versa
All upper case chars are changed to lower case and lower case chars are changed to upper case
Output is here
my_str='Welcome to plus2net Python Section'
« All String methods
wELCOME TO PLUS2NET pYTHON sECTION
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.