- pipenv install
- pipenv shell
- pytest
- pytest -x
- Debugging with ipdb
- Control Flow: Operators, Conditional Statements, Loops
- Functions in Python
- raise Exception()
Welcome to Python! In today's lecture, we will discuss the Python Fundamentals including important terminal commands, using ipdb
for debugging, control flow, functions, and using raise Exception()
to raise an Exception.
- 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-1-python-fundamentals
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.