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')
By EdmontonPy
Inspired by the Python community, we hope to foster a strong, supportive, and proficient Python community in the Edmonton area.