> > for s in strings: > print(repr(s), s.count('(') == s.count(')')) > But that will return true for ")this) isn't balanced( b)ut (says it( is" -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/centraloh/attachments/20141117/78c0dd4c/attachment-0001.html>