Skip to content

Instantly share code, notes, and snippets.

View edesdan's full-sized avatar

Daniele De Sanctis edesdan

  • Italy
View GitHub Profile
@edesdan
edesdan / permutations.py
Last active November 14, 2018 01:06
Given a word as argument this little program written in python finds all the permutations that have a meaning in the en_US dictionary
#!/usr/bin/python
import sys
import pprint
from PyDictionary import PyDictionary
import itertools
def check(wordToCheck):
meaning = dictionary.meaning(wordToCheck)
if meaning:
pp.pprint(meaning)