utils/src/helpers.py
2022-07-28 13:28:23 -04:00

9 lines
237 B
Python

import string
def flip_char(char: str):
if char in string.ascii_lowercase:
return string.ascii_uppercase[string.ascii_lowercase.find(char)]
else:
return string.ascii_lowercase[string.ascii_uppercase.find(char)]