Python's string swapcase method does exactly what you think it does. It swaps the case of all the lowercase and uppercase letters in the string. Swapcase also does nothing to whitespace, numbers, or symbols.
Subscribe If You Enjoyed :)
#pythonquiz #shorts