Question: PYTHON Define a random piece method that takes an input exclude (as well as self) that generates and returns a random puzzle piece from the
PYTHON
Define a random piece method that takes an input exclude (as well as self) that generates and returns a random puzzle piece from the pieces attribute. The input exclude will be a list of puzzle pieces that you wish to exclude from being randomly generated, so make sure you return a random puzzle piece that is *not* in exclude. You can import a module to generate random numbers for this.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
