fork download
  1. import itertools
  2.  
  3. print(list(itertools.permutations('000')))
Success #stdin #stdout 0.01s 7896KB
stdin
Standard input is empty
stdout
[('0', '0', '0'), ('0', '0', '0'), ('0', '0', '0'), ('0', '0', '0'), ('0', '0', '0'), ('0', '0', '0')]