AI
Code Your First AI: Python and Machine Learning from Scratch
- Grades
- Grades 6–8
- Session length
- 1 hr
- Format
- 4 weekly sessions
- Class size
- Up to 15 students
About this class
A hands-on 4-week course for middle schoolers who want to learn to code and understand how AI works at the same time. No experience is needed. Students learn beginner Python step by step and use it right away to build real machine learning projects in Google Colab. They write code that finds patterns in data, build a simple model that makes predictions, and train an AI that recognizes images. In week 4, each student codes and presents their own AI project. Every session mixes a short lesson, live coding together, and one-on-one help. Students finish with real Python skills and a clear picture of how machines learn. It's taught by a high school AI researcher with research experience at UCSC and UMBC.
What we'll cover
- Week 1: Python basics (variables, lists, loops) and what it means for a computer to learn
- Week 2: Working with data in Python and coding your own prediction rules and decision trees
- Week 3: Training your first ML model, and how neural networks recognize images
- Week 4: Testing and tricking your model, plus coding and presenting your own AI project
Learning objectives
- Write beginner Python programs using variables, lists, loops, and if statements
- Load and explore a small dataset in Python
- Explain how a computer learns from examples
- Code and train a simple machine learning model
- Test a model's accuracy and explain why it makes mistakes
- Build and present an original AI project in Python
Materials
A laptop or desktop with internet access and a free Google account for Google Colab. Nothing needs to be installed and no coding experience is needed.
Your instructor
Tarunesh Sathish
Hi! I'm a senior who loves helping Java finally make sense. Bring your homework, a project, or the concept that's…
View profile & résumé