Advertisement
Guest User

Python turns diner into dinner

a guest
Feb 23rd, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. dopplers = []
  2.  
  3. for w in words:
  4. for pos in range(len(w)):
  5. tw = w[:pos] + w[pos] + w[pos:]
  6. if tw in wordlist:
  7. dopplers.append((w,tw))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement