Sample Code

# Python program to demonstrate the use of
# swapcase() method

string = "Welcome to Wikitechy"

# prints after swappong all cases
print(string.swapcase())

string = "striver"
print(string.swapcase())

Output

Categorized in:

Python

Tagged in:

, , , , , , , , , , ,

Share Article:

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock