edmontonpy.com
@edmontonpy
edmontonpy.slack.com
Daniel Mouris & Andrew Crouse
NEXT MEETUP ON AUGUST 13th
None Right now that I know of but Please let me know if you have any!
With the builtin itertools you can get all permutations of a specific string!
Code
Output
The above is a simple way to get all of the permutations of the string 'ABC'
import itertools
for p in itertools.permutations('ABC'):
print(p)
('A', 'B', 'C')
('A', 'C', 'B')
('B', 'A', 'C')
('B', 'C', 'A')
('C', 'A', 'B')
('C', 'B', 'A')