Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code snippet?
print(‘Ab!2’.swapcase())

What will be the output of the following Python code snippet?
print(‘Ab!2’.swapcase())
a) AB!@
b) ab12
c) aB!2
d) aB1@

Answer: c
Explanation: Lowercase letters are converted to uppercase and vice-versa.

Join The Discussion