There are two bugs in this code. One bug causes one test to fail, the other causes two tests to fail.
The objective is to use your debugging skills to understand what the program is doing wrong and why. At the end of the day, the easiest (and quite possibly best) way to fix the bugs would be to just copy/paste your to the buggy functions to replace this solution, so the emphasis here is less on fixing the bug and more on understanding.
Have fun!
Everything below is just setup info copy/pasted from the original project. It's here for referene if you need it but it's nothing new :)
Follow these directions once, a the beginning of your project:
- Navigate to your projects folder named
projects
$ cd ~/Developer/projects
- "Clone" (download a copy of this project) into your projects folder. This command makes a new folder called
swap-meet
, and then puts the project into this new folder.
$ git clone ...
Use ls
to confirm there's a new project folder
- Move your location into this project folder
$ cd swap-meet
- Create a virtual environment named
venv
for this project:
$ python3 -m venv venv
- Activate this environment:
$ source venv/bin/activate
Verify that you're in a python3 virtual environment by running:
$ python --version
should output a Python 3 version$ pip --version
should output that it is working with Python 3
- Install dependencies once at the beginning of this project with
# Must be in activated virtual environment
$ pip install -r requirements.txt
Summary of one-time project setup:
-
cd
into yourprojects
folder - Clone the project onto your machine
-
cd
into theviewing-party
folder - Create the virtual environment
venv
- Activate the virtual environment
venv
- Install the dependences with
pip