Python & AI

Course Title:

Python and AI
UC Subject Category: Mathematics – Computer Science (C)
Delivery Mode: Online & Classroom-Based
Grade Levels: 10–12
Credits: 5 UC-Approved High School Credits
Prerequisites: Algebra I (Algebra II recommended)


Course Description:

Python and AI introduces students to the foundations of programming with Python and its powerful applications in artificial intelligence. This course blends computational thinking, algorithmic design, and practical coding skills with introductory machine learning concepts. Students will write and debug Python code, work with data structures, and build small AI models using popular libraries such as NumPy, pandas, and Scikit-learn.

As students develop coding fluency, they will apply their skills to real-world challenges involving data analysis, natural language processing, computer vision, and predictive modeling. Ethical issues surrounding AI—including algorithmic bias and data privacy—are integrated throughout the course to encourage responsible and thoughtful design.

By the end of the course, students will have completed a capstone project that demonstrates their understanding of both Python programming and AI principles. The course prepares students for further study in computer science, data science, and related STEM fields.


Syllabus Overview: Python and AI

UnitTopics CoveredKey Activities & Assessments
Unit 1: Introduction to Python ProgrammingVariables, data types, loops, conditionals, functionsCoding labs, debugging challenge, basic text-based game
Unit 2: Working with DataLists, dictionaries, file I/O, CSV parsing, data visualizationBuild a grade calculator; plot data with matplotlib
Unit 3: Python Libraries for AINumPy arrays, pandas dataframes, data preprocessingData cleaning and analysis with real-world datasets
Unit 4: Introduction to Machine LearningSupervised learning, classification, training/testing datasetsCreate a model to classify movie reviews or predict grades
Unit 5: Natural Language Processing (NLP)Text tokenization, sentiment analysis, word frequencyNLP mini-project with user-generated input and results dashboard
Unit 6: Computer VisionImage arrays, filters, object recognition, OpenCV basicsBuild a basic image classifier or photo filter engine
Unit 7: Ethics in AI and TechnologyAI bias, fairness, deepfakes, data privacyWrite a research-based essay or podcast episode on an ethical issue
Unit 8: Capstone ProjectStudent-directed project combining Python and AI techniquesFinal project with report, code submission, and presentation

Tools & Platforms

  • Programming: Google Colab, Replit, or Jupyter Notebook
  • Libraries: NumPy, pandas, matplotlib, Scikit-learn, NLTK, OpenCV
  • Learning Management: Canvas LMS
  • Optional tools: Kaggle datasets, Teachable Machine, DALL·E for visualization

Grading Breakdown

  • Weekly coding exercises and labs – 30%
  • Quizzes and technical assessments – 15%
  • Ethics discussion assignments – 10%
  • Unit projects – 25%
  • Final Capstone Project – 20%

Student Learning Outcomes

By the end of the course, students will:

  • Write Python code to solve computational problems
  • Use Python libraries to manage and analyze structured data
  • Build and evaluate basic AI and machine learning models
  • Understand key AI applications in NLP and computer vision
  • Analyze and communicate the ethical implications of AI systems
  • Complete and present a self-directed coding and AI project