use list() to wrap range() in itertools.permutations() example; thanks to Romain MORLEVAT from docs@
Attach a file by drag & drop or click to upload