fork download
  1. from itertools import permutations
  2. perm = set(permutetions([ch for ch in input()]))
  3. print(len(perm))
  4. for comb in perm: print(''.join(comb))
  5.  
Runtime error #stdin #stdout #stderr 0.04s 9340KB
stdin
X772KX
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
NameError: name 'permutetions' is not defined