This repository contains the course notes and code examples of the course 10 Days of Python with AI. The course is aimed for curious Vibe coders with no programming background who want to have a wholistic view of coding and ai technologies and the skills to debug, specify and scrutinise code that is mainly produced with AI.
The course is mainly produce to use Visual Studio Code and Github Copilot; and a big part of it uses python for automatization, API calls, web programming, AI programming and more.
The course notes themselves may be found in 10 Days of Code with AI course notes and the code examples in git hub code examples. Once Visual Studio Code and python are installed in your machine, you can run the examples by simply typing in your terminal:
python <filename>.pyIf you wish you could install git on your vs code and clone this repository in your local machine.
If you're on Windows and want to use Bash in VS Code, you can install Git for Windows, which includes Git Bash.
- Download and install Git for Windows.
- After installation, open VS Code.
- Press Ctrl + Shift + P and type
Terminal: Select Default Profile. - Choose
Git Bashfrom the list.
Now, when you open a new terminal in VS Code, it will use Bash.
Note: Installing Git for Windows will also install Git Bash. You do not need to install Git separately—Git Bash is included as part of the Git installation package.
A virtual environment in Python is an isolated workspace that allows you to install and manage packages separately from your global Python installation. This means each project can have its own dependencies, versions, and settings without interfering with other projects or the system Python.
Why use a virtual environment?
- Isolation: Keeps project dependencies separate, avoiding conflicts between packages required by different projects.
- Reproducibility: Makes it easier to share your project with others, since you can specify exactly which packages and versions are needed. Safety: Prevents accidental changes to system-wide Python packages.
Typical workflow:
- Create a virtual environment for your project.
- Activate it before working.
- Install packages using pip—these go only into the virtual environment.
- Deactivate when done.
This approach is especially useful in collaborative or production settings, ensuring consistency and minimizing dependency issues.
To create a Python virtual environment, run the following command in your terminal:
python -m venv venvThis will create a new directory called venv containing the virtual environment.
To activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux/bash terminal:
source venv/bin/activate
Once activated, you can install packages using pip and they will be isolated to this environment.
To deactivate the Python virtual environment, simply run:
deactivateThis will return your terminal to the global Python environment.
To clone this repository to your local machine, open your terminal and run:
git clone https://github.com/StructuralWizard/10DaysOfCode.github.io.gitThis will create a local copy of the repository in your current directory.
To install the dependencies listed in requirements.txt, make sure your virtual environment is activated, then run:
pip install -r requirements.txtThis will install all the required Python packages for the project.
This site has been created using Just the Docs theme and the hosted in GitHub Pages. You can [Browse our documentation] for more information.
To visualise the github site in the browser rather than editing its markdown you can run bundle exec jekyll serve from the main 10DaysOfCode folder where you have the _config.yml file.
Assuming Jekyll and Bundler are installed on your computer:
-
Change your working directory to the root directory of your site.
-
Run
bundle install. -
Run
bundle exec jekyll serveto build your site and preview it atlocalhost:4000.The built site is stored in the directory
_site.
Note: If you are using a Jekyll version less than 3.5.0, use the gems key instead of plugins.