uccjshrimpton

Find All Permutations

May 5th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. import itertools
  2.  
  3. combo = str(input("Enter any available numbers:\n"))
  4.  
  5. for i in itertools.permutations(str(combo)):
  6.  
  7.     print(", ".join(str(e) for e in i))
Advertisement
Add Comment
Please, Sign In to add comment