I\'m trying to solve this challenge in hackerrank, which asks to convert all lowercase letters to uppercase letters and vice versa.
I attempt it with the following code:
The built-in str.swapcase already does this.
def swap_case(s): return s.swapcase()