My programing World
A collection of programs and interview questions
Thursday, February 4, 2016
Python : prem
#!/usr/bin/python
import enchant
import iterutils
word = "catl"
string_list = map(''.join,list(iterutils.permutations(word)))
d = enchant.Dict("en_US")
print [i for i in string_list if d.check(i) ]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment