In class today I gave an overview of how to use the itertools
library to solve
combinatorics type problems.
You can see a recording of the class here
Here is the notebook I used in class: combinatorics.ipynb
To solve the following problem:
The digits 1, 2, 3 and 4 are arranged in random order, to form a four-digit number.
We did not quite have time to get to the last part, if you do attempt the question and would like some feedback let me know.
If you have any questions please let me know.
Source code: @drvinceknight Powered by: Jekyll Github pages Bootsrap css