Flip letter case

Write codeEasy10 min

Your task

Given a string, return a copy where the case of every ASCII letter is flipped: lowercase becomes uppercase and uppercase becomes lowercase. All other characters stay unchanged. Implement the transformation yourself using character-code ranges rather than a library swap-case helper. For example, 'Hello, World!' becomes 'hELLO, wORLD!'.

Examples

flip_case(s: str) -> str
Example 1
Inputflip_case("Hello, World!")
Output"hELLO, wORLD!"