Chris Angelico writes: > This assumes, of course, that there is a function swapcase which can > return a string with case inverted. I'm not sure such a function > exists.
str.swapcase("foO") 'FOo' -- https://mail.python.org/mailman/listinfo/python-list