Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Caps Lock by hard.tyanaka
def caps_lock(text: str) -> str:
joe_text = [w if i%2==0 else w.upper() for i, w in enumerate(text.split("a"))]
return "".join(joe_text)
May 10, 2020