Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AI for Teens Bootcamp Course Guide

A hands-on, beginner-friendly course for teen students. Work through each section in order every topic builds on the one before it.


πŸ—ΊοΈ Course Outline

# Section What's Inside
1 🐍 Intro to Python 4 notebooks
2 πŸ“Š Data Literacy 2 notebooks + 1 workbook
3 πŸ€– Machine Learning 1 notebook + 1 workbook
4 πŸ’¬ Natural Language Processing (NLP) 1 notebook + 1 workbook
5 πŸ‘οΈ Computer Vision 1 notebook + 1 workbook
6 ✨ Basic Intro to Generative AI 1 notebook + 1 workbook + Python scripts

⚑ Quick Navigation

Click Open notebook to view on GitHub, or click the Colab badge to run it instantly in your browser β€” no installation needed!

🐍 Section 1: Intro to Python

# Topic GitHub Google Colab
1 Fundamental Programming Concepts Open notebook Open In Colab
2 Program Logic and Control Flow Open notebook Open In Colab
3 Data Structures and Functions Open notebook Open In Colab
4 File Paths and File System Open notebook Open In Colab

πŸ“Š Section 2: Data Literacy

# Topic GitHub Google Colab
5 Working with Data:Β Pandas Open notebook Open In Colab
5b Data Analysis Workbook Open workbook Open In Colab
5c Creating Dashboards with Streamlit Open notebook Open In Colab

πŸ€– Section 3: Machine Learning

# Topic GitHub Google Colab
6 Machine Learning Notebook Open notebook Open In Colab
6b Machine Learning Workbook Open workbook Open In Colab

πŸ’¬ Section 4: Natural Language Processing (NLP)

# Topic GitHub Google Colab
7 NLP Notebook Open notebook Open In Colab
7b NLP Workbook Open workbook Open In Colab

πŸ‘οΈ Section 5: Computer Vision

# Topic GitHub Google Colab
8 Computer Vision Notebook Open notebook Open In Colab
8b Computer Vision Workbook Open workbook Open In Colab

✨ Section 6 β€” Basic Intro to Generative AI

# Topic GitHub Google Colab
9 Intro to GenAI Notebook Open notebook Open In Colab
9b GenAI Workbook Open workbook Open In Colab

πŸš€ How to Run the Notebooks

☁️ Option 1: Google Colab (Easiest, No Setup Needed!)

This is the recommended way for most students.

  1. Click any Colab badge from the Quick Navigation tables above.
  2. Sign in with your Google account.
  3. Click "Copy to Drive" so your changes are saved.
  4. Run cells with Shift + Enter and you're good to go! πŸŽ‰

πŸ’» Option 2: Run on Your Computer

What you need:

Steps:

# 1. Clone the repository
git clone https://github.com/Publica-AI/cchub-AI_for_teens_bootcamp.git

# 2. Move into the folder
cd cchub-AI_for_teens_bootcamp

# 3. Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate        # Mac / Linux
venv\Scripts\activate           # Windows

# 4. Install all required packages
pip install -r requirements.txt

# 5. Launch Jupyter
jupyter notebook

A browser window will open. Click any folder, then click a .ipynb file to open it.


πŸ“¦ What is requirements.txt?

The requirements.txt file lists every Python package this course needs β€” things like pandas, matplotlib, scikit-learn, tensorflow, and more. Installing it once sets up everything for all sections.


⚠️ If You Get Version or Dependency Errors

Sometimes packages clash with each other or with your Python version. Here are three ways to fix it:

Option A β€” Install without strict versions (most flexible)

Instead of pinning exact versions, install the packages by name only:

pip install pandas matplotlib seaborn scikit-learn tensorflow keras pillow requests openai jupyter notebook streamlit

This lets pip choose versions that work together on your machine.


Option B β€” Use a fresh virtual environment

A clean environment avoids conflicts with anything already installed on your computer:

# Create a brand new environment
python -m venv fresh_env

# Activate it
source fresh_env/bin/activate     # Mac / Linux
fresh_env\Scripts\activate        # Windows

# Install from requirements.txt
pip install -r requirements.txt

Option C β€” Use conda (if you have Anaconda or Miniconda)

conda create -n teens_ai python=3.10
conda activate teens_ai
pip install -r requirements.txt

πŸ’‘ Quick tip: If one specific package fails, skip it and install the rest. Most notebooks will still work. Only install what that section actually needs.


πŸ–₯️ Option 3: VS Code

  1. Install the Jupyter extension in VS Code (ms-toolsai.jupyter).
  2. Open the cloned folder in VS Code.
  3. Click any .ipynb file β€” it opens directly in VS Code.
  4. Pick a Python kernel from the top-right dropdown and run cells with Shift + Enter.

πŸ“– Notebook vs Workbook: What's the Difference?

πŸ“˜ Notebook πŸ“ Workbook
Teaches the concept step by step Applies the concept to a real project
Includes explanations and examples Includes student challenges and tasks
Complete thisfirst Complete thisΒ after the notebook

πŸ“‚ Section Breakdown

🐍 Section 1: Intro to Python

Folder: Intro_to_Python/

Start here if you are new to coding. These four notebooks cover the basics of Python.

# File What you will learn
1 fundamental_programming_concepts.ipynb print(), input(), variables, data types, comments
2 program_logic_and_control_flow.ipynb Operators,if/elif/else, for loops, while loops
3 data_structures_and_functions.ipynb Lists, tuples, dictionaries, functions, return values
4 file_paths_and_file_system.ipynb File paths, reading and writing files, directories

πŸ“Š Section 2: Data Literacy

Folder: Data_literacy/

Learn how to explore and visualise real data using pandas and Streamlit.

File What it covers
working_with_data_pandas.ipynb Loading, cleaning, filtering, grouping, and charting data
data_analysis_workbook.ipynb Work with a real dataset of 2,392 student records
creating_dashboards_with_streamlit.ipynb Build interactive dashboards with Streamlit

Data folder: Data_literacy/data/

File Description
kenyan_student_data.csv Kenyan student dataset used in the pandas notebook
Student_performance_data.csv Real dataset of 2,392 student records used in the workbook
student_data_dictionary.md Explains what each column in the dataset means

πŸ€– Section 3: Machine Learning

Folder: Machine Learning/

Learn how machines learn from data and how to build simple prediction models.

File What it covers
machine_learning_notebook.ipynb What ML is, types of ML, training and testing models, key algorithms
ml_workbook.ipynb Build a real ML project from data to prediction, with student tasks

πŸ’¬ Section 4: Natural Language Processing (NLP)

Folder: NLP/

Learn how computers understand and work with human language β€” like detecting emotions in text!

File What it covers
nlp_notebook.ipynb Tokenisation, stopwords, sentiment analysis, text classification
nlp_workbook.ipynb Apply NLP to a real text dataset, with student challenges

πŸ‘οΈ Section 5 β€” Computer Vision

Folder: Computer_Vision/

Learn how computers see and understand images β€” like identifying cats, dogs, and people in photos!

File What it covers
cv_notebook.ipynb How images work, loading and processing images, object detection basics
cv_workbook.ipynb Apply computer vision to real images, with student challenges

Image folder: Computer_Vision/image/

File Description
boy.jpg, boy2.jpg Sample photos of people
girl.jpg, girl2.jpg Sample photos of people
cat.jpg Sample photo of a cat
dog.jpg, dog2.jpg Sample photos of a dog
backpack.jpg Sample photo of an object
dress.jpg, shirt.jpg, shirt2.jpg Sample photos of clothing
knife.jpg Sample photo of an object

These images are used in the notebook and workbook exercises β€” no need to download anything extra.


✨ Section 6: Basic Intro to Generative AI

Folder: Basic_Intro_to_GenAI/

Learn what LLMs and chatbots are, and build your own!

File What it covers
notebook.ipynb What chatbots and LLMs are, how they work, OpenAI and Ollama
workbook.ipynb Build and customise chatbots, student challenges

Python scripts:

Script What it does
ask_openai.py Send a question to OpenAI from the terminal
ask_ollama.py Send a question to Ollama (works offline) from the terminal
openai_chatbot_app.py A full chatbot app powered by OpenAI
ollama_chatbot_app.py A full chatbot app powered by Ollama (runs offline)

⚠️ The GenAI scripts need an API key (for OpenAI) or Ollama installed (for offline use). Full instructions are inside the notebooks.


πŸ—‚οΈ Repository Structure

cchub-AI_for_teens_bootcamp/
β”‚
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ requirements.txt
β”‚
β”œβ”€β”€ Intro_to_Python/
β”‚   β”œβ”€β”€ fundamental_programming_concepts.ipynb
β”‚   β”œβ”€β”€ program_logic_and_control_flow.ipynb
β”‚   β”œβ”€β”€ data_structures_and_functions.ipynb
β”‚   └── file_paths_and_file_system.ipynb
β”‚
β”œβ”€β”€ Data_literacy/
β”‚   β”œβ”€β”€ working_with_data_pandas.ipynb
β”‚   β”œβ”€β”€ data_analysis_workbook.ipynb
β”‚   β”œβ”€β”€ creating_dashboards_with_streamlit.ipynb
β”‚   └── data/
β”‚       β”œβ”€β”€ kenyan_student_data.csv
β”‚       β”œβ”€β”€ Student_performance_data.csv
β”‚       └── student_data_dictionary.md
β”‚
β”œβ”€β”€ Machine Learning/
β”‚   β”œβ”€β”€ machine_learning_notebook.ipynb
β”‚   └── ml_workbook.ipynb
β”‚
β”œβ”€β”€ NLP/
β”‚   β”œβ”€β”€ nlp_notebook.ipynb
β”‚   └── nlp_workbook.ipynb
β”‚
β”œβ”€β”€ Computer_Vision/
β”‚   β”œβ”€β”€ cv_notebook.ipynb
β”‚   β”œβ”€β”€ cv_workbook.ipynb
β”‚   └── image/
β”‚       β”œβ”€β”€ boy.jpg, boy2.jpg
β”‚       β”œβ”€β”€ girl.jpg, girl2.jpg
β”‚       β”œβ”€β”€ cat.jpg
β”‚       β”œβ”€β”€ dog.jpg, dog2.jpg
β”‚       β”œβ”€β”€ backpack.jpg
β”‚       β”œβ”€β”€ dress.jpg, shirt.jpg, shirt2.jpg
β”‚       └── knife.jpg
β”‚
└── Basic_Intro_to_GenAI/
    β”œβ”€β”€ notebook.ipynb
    β”œβ”€β”€ workbook.ipynb
    β”œβ”€β”€ ask_openai.py
    β”œβ”€β”€ ask_ollama.py
    β”œβ”€β”€ openai_chatbot_app.py
    └── ollama_chatbot_app.py

⌨️ Keyboard Shortcuts

Action Shortcut
Run the current cell Shift + Enter
Run and add a new cell below Alt + Enter
Add a cell below B (command mode)
Delete a cell D D (command mode)
Stop a running cell Click the β–  Stop button

πŸ’‘ Tip: Click a cell to select it (command mode). Press Enter to type inside it (edit mode). Press Escape to go back to command mode.


πŸ“„ License

See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages