Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Caps Lock by rafal.pawlowski
def caps_lock(text: str) -> str:
st = ''
mode = False
for char in text:
if char == 'a':
mode = not(mode)
continue
if mode:
char = char.upper()
st += char
return st
April 6, 2019