This is a Python project, dedicated to enhancing my learnings for Python. In particular this project is to go through the Python Tutorials in Python Crash Course 3rd Edition.
This Python project assumes your using a virtual environment. After cloning this project, from the root directory you will need to:
- Set up a local virtual environment
python3 -m venv venv
- Activate it
source venv/bin/activate
- Install the required dependencies
pip install -r requirements.txt
- Run the example script to make sure it's working
python chapter_01/hello_world.py
- Deactivate the virtual environment
deactivate
If you were able to run hello_world.py inside the chapter_01 folder then you should be good to run all other examples in this project. Remember that you're output should look something like this:
(venv) ➜ python-crash-course git:(main) ✗ python chapter_01/hello_world.py
Hello world
Note that you should be seeing the (venv) since your using a virtual environment.
| Chapter | Title | Learning Notes |
|---|---|---|
| 1 | Getting Started | Installing and Hello world program |
| 2 | Variables and simple data types | Strings, numbers and comments |
| 3 & 4 | Lists | Lists, for loops |
| 5 | If Statements | If, if else and else statements |
| 6 | Dictionaries | Dictionaries, list of dictionaries, dictionaries of dictionaries |
| 7 | User Input and While Loops | User input, while loops, casting to Int |
| 8 | Functions | Functions, return functions, default values, argument order |
| 9 | Classes | Classes, Inheritance, Encapsulation |
| 10 | Files and Exceptions | Catching exception, reading and writing to files |
| 11 | Testing with Pytest | Testing functions and classes with Pytest |
| Chapter | Title | Learning Notes |
|---|---|---|
| 12 | Pending | - |