itertools.permutations()

  • + 0 comments

    If you're stuck generating permutations, just sort the string first! Might even help with your lunchtime bonus prediction for today if you're mixing up options.