निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
What will be the output of the following Python code snippet?
print('Ab!2'.swapcase())
A
AB!@
B
ab12
C
aB!2
D
aB1@
Explanation
The swapcase() method changes uppercase letters to lowercase and vice versa. So, 'Ab!2' becomes 'aB!2'.
Answer: (C) aB!2
Correct Answer: C) aB!2