employer cover photo

TechnoHacks EduTech

Is this your company?

TechnoHacks EduTech interview question

What is swapcase function in Python?

Interview Answer

Anonymous

28 May 2024

it is a string’s function that converts all uppercase characters into lowercase and vice versa. It is used to alter the existing case of the string. This method creates a copy of the string which contains all the characters in the swap case.