Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How a 19-Year-Old Raised $5 Million to Revolutionize Search. Parent comment
max((s[start:end] for start in xrange(len(s)) for end in xrange(start, len(s)) if s[start:end]==s[start:end][::-1]), key=len)
There are no comments on this comment yet.
max((s[start:end] for start in xrange(len(s)) for end in xrange(start, len(s)) if s[start:end]==s[start:end][::-1]), key=len)