- To toggle string cases
User Input: heLLo WoRLd
Output: HEllO WOrlD
s1=input("Enter your string : ") print("After toggle, Your string : ",s1.swapcase())
Enter your string : Have good DAy After toggle, Your string : hAVE GOOD daY
You can use predefined swapcase() method to toggle string cases
swapcase()
s1.swapcase()
Coming Soon !
You cannot have a positive life and a negative mind.