I would like to write a function in Python that takes a string which has lower and upper case letters as a parameter and converts upper case letters to lower case, and lower case letters to upper case.
For example:
>>> func('DDDddddd')
'dddDDDDD'
I want to do it with strings but I couldn't figure out how.