- Sequences
- Sequence functions and methods
- List Comprehensions
- Dictionaries
- Sets
In today's lecture, we will discuss Python Data Structures such as sequences, sets, and Dictionaries. We will also practice using List Comprehensions to generate new lists from lists that we are iterating over.
- Make sure that your current working directory (folder) contains a
Pipfile
, then runpipenv install
in your terminal to installpytest
and any other required libraries. - Now that your
pipenv
virtual environment is ready to use, enterpipenv shell
to start working. - Run
pytest
from inside of thephase-3-lecture-2-python-data-structures
directory (if you can seelib
,Pipfile
,Pipfile.lock
,pytest.ini
, andREADME.md
in your current working directory, then you are in the correct directory) to run the tests, and begin working to pass the tests. You can also runpytest -x
to run one test at a time.