Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Brackets by klazich
def checkio(expression):
e = filter(lambda x: x in '{}()[]', expression)
brc = ''.join(e)
while any(['{}' in brc, '()' in brc, '[]' in brc]):
brc = brc.replace('{}', '')
brc = brc.replace('()', '')
brc = brc.replace('[]', '')
return brc == ''
Oct. 4, 2017