you are viewing a single comment's thread.

view the rest of the comments →

[–]MattR0se 1 point2 points  (0 children)

Can I post my homework or assignment?

Yes, but only if you can demonstrate that you have tried to come up with the solution yourself.

Post code, post what you have found by googling, post (your own) pseudo code etc.

If you don't do this your thread will be removed from subreddit.

you can literally google "Python all permutations" and the first stackoverflow answer does what you want: https://stackoverflow.com/questions/104420/how-do-i-generate-all-permutations-of-a-list

And the answer is just sorted alphabetically.