Permutations and derangements Posted on 2005/03/29 by niemeyer 4 Two snippets to compute permuatations and derangements in Python.