Skip to content

Instantly share code, notes, and snippets.

@mobileappconsultant
Last active January 29, 2019 10:47
Show Gist options
  • Save mobileappconsultant/7e5c953b60be3c92ecabf57b133509de to your computer and use it in GitHub Desktop.
Save mobileappconsultant/7e5c953b60be3c92ecabf57b133509de to your computer and use it in GitHub Desktop.
Simple demo of library that arranges all characters of a string in max number of possible ways
import itertools
count =0;
stringInput = input(("Enter a string: "))
for p in itertools.permutations(stringInput):
count = count +1
print("{},{}".format(count,p))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment