Header image for test

test

test

Prompt

Complete the following Python function: ```python def flip_case(string: str) -> str: """ For a given string, flip lowercase characters to uppercase and uppercase to lowercase. >>> flip_case('Hello') 'hELLO' """ ```

Answer guidance

Canonical solution (function body): return string.swapcase()