Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Caps Lock by DaI17
def caps_lock(text: str) -> str:
is_caps_on = False
result = ""
for i in text.split("a"):
if is_caps_on:
result += i.upper()
else:
result += i
is_caps_on = not is_caps_on
return result
Feb. 13, 2021
Comments: