Kids Learn AI Logo
Lesson 1: Getting Ready to Learn AI with Python! 🤖🐍
What you need, how to use Trinket, and why Python is great for AI.

Lesson 1: Getting Ready to Learn AI with Python! 🤖🐍

Welcome! In this lesson, we’ll get everything ready so you can have fun learning to code with Python and discover the world of Artificial Intelligence (AI).

What You’ll Need 🧰

  • A computer, Chromebook, or tablet with internet
  • A modern web browser (Chrome, Edge, Safari, Firefox)
  • Your curiosity and a smile 😄

Set Up Your Coding Space with Trinket 💻

We’ll use an online coding tool called Trinket. It runs right in your browser—no downloads!

  1. Go to Trinket
  2. Click “Sign Up” and create a free account (or “Sign In with Google”)
  3. Click “New Trinket” → choose “Python”
  4. Type your code on the left and click “Run” to see results on the right
  5. You can share your code with friends and teachers by copying the link

Tip: Trinket works on most devices and is great for quick practice. Learn more on their site: Trinket

What is AI? 🤖✨

AI is like teaching computers to be a little smart! We give them lots of examples and rules so they can:

  • Recognize pictures (like cats vs. dogs)
  • Talk and answer questions
  • Recommend fun videos or songs
  • Help doctors, drivers, and scientists

AI doesn’t have feelings—it just follows what it learned from data.

Why Python for AI? 🐍💡

Python is friendly and powerful. People use it to build websites, games, robots—and AI! Python is popular for AI because:

  • The code is easy to read
  • It has amazing libraries (like NumPy and TensorFlow)
  • It’s used by professionals and beginners alike

Try It! Your First Tiny Programs 🚀

Let’s warm up with a few small prints. You can run these here or in Trinket:

print("Hello, AI world!") print("I am ready to learn Python!")

Now try changing the messages to your name or favorite hobby:

print("Hi, I am <your name>!") print("I love <your hobby>!")

Quick Checklist ✅

  • I can open Trinket and run code
  • I understand that AI learns from data
  • I know Python helps me build AI projects

Sign in to track your progress

Lesson not completed
Python Code Editor
Press Ctrl+Enter to run code
1
2
Output:
Loading Python environment...