Jump to content

Semordnilap: Difference between revisions

m
→‎Idiomatic: what exactly is wrong with "word" that we have to spell it "wrd" ?
(remove the second mention of phrases)
m (→‎Idiomatic: what exactly is wrong with "word" that we have to spell it "wrd" ?)
Line 2,624:
 
>>> revlist = (''.join(word[::-1]) for word in wordset)
>>> pairs = set((wrdword, rev) for wrdword, rev in zip(wordset, revlist)
if wrdword < rev and rev in wordset)
>>> len(pairs)
158
Cookies help us deliver our services. By using our services, you agree to our use of cookies.