This repository contains my solutions for the projects of the python course Scientific Computing with Python from freeCodeCamp.
The solutions in this repository are made with Python 3.9.0
.
Link to my project solution click me
Link to my repl.it
click me
Link to my project solution click me
Link to my repl.it
click me
Link to my project solution click me
Link to my repl.it
click me
Link to my project solution click me
Link to my repl.it
click me
Note:
The tip with the copy
module, that was not known to me before, saved me. (I mean who knows everything ¯\_(ツ)_/¯). Without it I would have no clue of to solve this one as easy as i did 😋.
Till I was hitting the unit tests, I did not think at all, that if I pull out of the hat, the taken out balls are missing for the next iteration (although the task description says, that it is to treat like an urn drawing...).
Thus every iteration did not have the same pool of balls.
Fortunately there is the copy.deepcopy
method. With this I could solve the problem.
Also I ran into ValueError: empty range for randrange() (0, 0, 0)
errors and had to use all mighty google to find help in a GitHub issue. That was also refreshing 😅.
Link to my project solution click me
Link to my repl.it
click me