Coding with AI

The Coding with AI unit teaches strategies for using AI to simplify complex concepts, guide problem-solving, and even generate code, empowering students to become informed and ethical future coders.

Explore unit

Empower students to become confident, ethical coders

Teach students how AI can become an effective support tool with this versatile, language-neutral unit.

Language agnostic

Tailored for universal relevance, this unit goes beyond specific programming languages, focusing on foundational AI and coding principles and challenges.

Flexible course structure

Beyond the introductory lesson, this unit is designed to be flexible. You can teach each lesson on it's own or in the order that suits your classroom learning goals.

AI as a support tool

This unit is an ideal add-on to any language-specific instruction, helping you teach how AI can be used as a support tool and equip students with future-ready skills.

Explore unit

Curriculum at a glance

  • Grades: 6-12

  • Level: Beginner

  • Duration: Five 45 minutes lessons

  • Devices: Laptop, Chromebook

  • Topics: Artificial Intelligence, Programming

  • Programming Tools: Any AI tool (ChatGPT, Bard, etc)

  • Professional Learning: None

  • Accessibility: Text-to-speech, Closed captioning, Immersive reader

  • Languages Supported: English

Resources to support you every step of the way

Get access to materials that will help you teach computer science with confidence—even without prior CS teaching experience—when you create a free Code.org account.

Lessons in this course

With the exception of lesson 1, the lessons in this course are flexible and can be taught in any order!

Lesson 1

Introduction to Coding with AI

How can AI support code development and what ethical considerations should be addressed when using AI in coding?

Lesson 2

AI as Your Ideation Partner for Programming Prep

How can AI assist during the initial stages of the programming process, and what ethical considerations should be noted?

Lesson 3

Navigating Algorithms with the Help of AI

How can AI enhance your ability to develop and understand algorithms, and what ethical considerations should be noted?

Lesson 4

AI as Your Debugging Partner

How does integrating AI into the debugging process impact the balance between a programmer's creativity and problem-solving efficiency?

Lesson 5

Beyond the Finished Code

How can AI tools ethically enhance the functionality of a finished program?

Learn more about Artificial Intelligence

Grades 3-12

Dance Party: AI Edition

Learn about artificial intelligence (AI) concepts to create your own virtual dance party showcasing today's top artists.

Grades 6-12

How AI Works

This series of short videos and accompanying lessons will introduce you and your students to how artificial intelligence works and why it matters.

Professional Learning

AI 101 for Teachers

Discover the groundbreaking world of AI and its transformative potential in education with our foundational online learning series for teachers.


Discover our extensive AI resources

We're rapidly expanding our AI offerings, including robust AI-focused curriculum, professional learning, educational videos, and more! Explore everything we have to offer and find what's right for you.

Explore AI resources

Frequently asked questions

What programming language is the module for?

None! This module is intentionally designed to be language-agnostic so you can incorporate these lessons into your existing curriculum.

What are the prerequisites for this module?

There are no required prerequisites, but you may choose to teach one or more of the How AI Works lessons before these to provide additional context about chatbots and large language models, algorithmic bias, and ethical considerations of AI.

What tools and setup are required for teaching this module?

Students need to have their own devices to type on. They also need access to Bing, Bard, ChatGPT, or some other general chatbot on their computers. Check with your principal or IT department to make sure students can access one of these LLMs (Large Language Models).

What is the recommended timing for teaching this module?

Due to the flexibility of these lessons, you could choose to teach these lessons in any order, in sequence, spread out over multiple weeks, or back-to-back within one week.

How can I access answer keys?
Is this module mapped to standards?

Additional resources

From diverse curriculum offerings, to short educational videos, explore all the things Code.org has to offer.

Curriculum Catalog

Comprehensive curriculum offerings for every grade and experience level featuring robust structured and self-paced learning options.

Explore Videos

We offer a growing library of educational videos for use by educators worldwide, online or in classrooms.

Get Support

Our customer support team is ready to answer your questions. Email us at support@code.org or check out our support center, which offers useful guides and answers!