Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Caps Lock by suic
def caps_lock(text):
caps, result = False, []
for c in text:
if c == 'a':
caps = not caps
else:
result.append(c.upper() if caps else c)
return "".join(result)
April 22, 2019
Comments: