Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1 Line solution in Speedy category for Caps Lock by Alex_4444D
def caps_lock(text: str) -> str:
return ''.join([y.upper() if x % 2 != 0 else y for x, y in enumerate(text.split('a'))])
Oct. 18, 2021