Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Caps Lock by rybld2
def caps_lock(text: str) -> str:
tex = text.split('a')
res = []
flag = False
for x in tex:
flag = not flag
if not flag:
x = x.upper()
res = res + [x]
return ''.join(res)
Jan. 1, 2021
Comments: