6 lines
205 B
Python
6 lines
205 B
Python
def flip_case(string: str) -> str:
|
|
""" For a given string, flip lowercase characters to uppercase and uppercase to lowercase.
|
|
>>> flip_case('Hello')
|
|
'hELLO'
|
|
"""
|
|
return string.swapcase() |