What is swapcase() function in the Python?

Last updated 3 weeks, 5 days ago | 22 views 75     5

Tags:- Python

Python | swapcase() Function

It is a string's function that converts all uppercase characters into lowercase and vice versa. It automatically ignores all the non-alphabetic characters.
 

string = "IT IS IN LOWERCASE."  

print(string.swapcase())