Every mix of upper and lower case
Write case_variants(text) that returns every string obtainable by changing the case of
any letters in text; digits stay as they are. Order of the output does not matter.
case_variants("a1b") -> ["a1b", "a1B", "A1b", "A1B"]
case_variants("12") -> ["12"]
The point is to practise a two-way branch per position, with a position that offers only one choice.
def case_variants(text):
...