Module 1: Introduction to AI
Course: Programming with Free AI Tools — Build Real Websites and Apps | Audience: Ages 15–25, beginners | Module Goal: Understand what AI is, how it helps in software development, and clear up common myths about AI coding.
Teaching Principle: Always verify AI output. AI is a helpful assistant, not a replacement for understanding your code.
Lesson 1.1 — What Is Artificial Intelligence?
Duration: 45 minutes
Learning Objectives
- Define artificial intelligence in simple, everyday terms.
- Give 3 real-life examples of AI you already use.
- Explain the difference between AI, a program, and a robot.
- Describe what "machine learning" means without complex math.
Instructor Notes
Keep it friendly and relatable. Avoid heavy theory. Use examples students know: phone autocorrect, TikTok feed, Google Maps. Emphasize that AI is software trained on data, not magic. Remind them that AI makes mistakes and needs human checking.
Presentation Outline
- Welcome and course intro (5 min).
- Quick poll: "Where have you seen AI today?" (5 min).
- Simple definition of AI (10 min).
- Examples students use daily (10 min).
- AI vs program vs robot (10 min).
- What is machine learning in 1 slide (5 min).
Demonstration
- Open your phone and show autocorrect or a recommendation feed.
- Open a browser and type a sentence into Google; show "Did you mean".
- Explain each as a trained model predicting the next best option.
- Ask: "Is this AI or just a rule?" Discuss the difference.
AI Prompts
- "Explain what artificial intelligence is to a 15-year-old using simple examples."
- "Give me 5 everyday apps that use AI and describe what the AI does in each."
Starter Code
No code in this lesson. Write your answers in a notebook:
1. My definition of AI: ___________________________
2. Three AI tools I use daily:
a) ___________________________
b) ___________________________
c) ___________________________
Final Code
Completed notes example:
1. My definition of AI: A computer program that learns patterns from data to make predictions or decisions.
2. Three AI tools I use daily:
a) YouTube recommendations
b) Phone autocorrect
c) Spotify music suggestions
Exercises
- Exercise 1: List 5 AI-powered features in apps you use and write one sentence on what each does.
- Exercise 2: Draw a simple diagram showing "Data → Model → Prediction".
- Exercise 3: Debate in pairs: "Is a calculator AI?" Then write your conclusion.
Homework
- Assignment 1: Write a 150-word paragraph: "AI in my daily life."
- Assignment 2: Ask an AI tool "What is AI?" and paste its answer into your notes, then underline one sentence you don't understand to ask in class.
Quiz
- What is the simplest definition of AI?
- a) A physical robot
- b) Software that learns patterns from data to make decisions ✅
- c) A programming language
- d) A type of computer
- Which of these is an example of AI you likely use daily?
- a) A printed book
- b) Video recommendation feeds ✅
- c) A wooden ruler
- d) A light switch
- What is machine learning?
- a) A machine that never breaks
- b) Teaching a computer using rules only
- c) Training software on data so it improves at a task ✅
- d) A type of hardware
- Is a calculator an AI?
- a) Yes, always
- b) No, it follows fixed rules without learning ✅
- c) Only if it is expensive
- d) Only on smartphones
- Why should we verify AI output?
- a) AI is always wrong
- b) AI can make confident mistakes and needs human checking ✅
- c) It is illegal not to
- d) It slows the computer
Lesson 1.2 — How AI Is Used in Software Development
Duration: 50 minutes
Learning Objectives
- Name 4 ways AI helps developers write software.
- Describe what "code generation" means.
- Explain how AI helps find and fix bugs.
- Understand that AI speeds work but does not replace thinking.
Instructor Notes
Show that AI is like a smart teammate: it writes boilerplate, explains code, finds errors, and suggests improvements. Stress that the developer must read, test, and understand the result. Use a live example if possible.
Presentation Outline
- Recap: what is AI (5 min).
- The developer's daily work (5 min).
- AI for code generation (10 min).
- AI for debugging and explanations (10 min).
- AI for documentation and testing (10 min).
- Limits and responsibilities (10 min).
Demonstration
- Open ChatGPT (or similar free tool).
- Type: "Write a Python function that adds two numbers."
- Show the response and read it line by line with students.
- Type: "Explain this code step by step." Show the explanation.
- Type: "Find the bug in this code: `print('Hello'`" and show the fix.
- Emphasize: we tested the output before trusting it.
AI Prompts
- "Write a simple Python function to calculate the area of a rectangle, and explain each line."
- "Find the bug in this code and fix it: `def add(a, b): return a - b`."
Starter Code
# Starter: complete this function
def multiply(a, b):
# TODO: return the product of a and b
pass
Final Code
# Final: working solution
def multiply(a, b):
return a * b
print(multiply(3, 4)) # Output: 12
Exercises
- Exercise 1: Use an AI tool to write a function that converts Celsius to Fahrenheit, then run it to verify.
- Exercise 2: Paste a confusing line of code into an AI tool and ask it to explain it in plain language.
- Exercise 3: Ask AI to suggest 3 variable names for a "user age" value and pick the clearest one.
Homework
- Assignment 1: Write a short blog-style post (200 words): "How AI could help me build my first website."
- Assignment 2: Try one AI coding tool and note one thing it did well and one thing it got wrong.
Quiz
- Which is NOT a common use of AI in software development?
- a) Generating code
- b) Explaining code
- c) Watering plants ✅
- d) Finding bugs
- What does "code generation" mean?
- a) Printing code on paper
- b) AI writing code from a description ✅
- c) Deleting code
- d) Compiling code
- When AI gives you code, you should:
- a) Copy it without reading
- b) Read, test, and understand it ✅
- c) Ignore it
- d) Submit it as your own without checking
- AI is best described as a developer's:
- a) Replacement
- b) Smart teammate that needs supervision ✅
- c) Enemy
- d) Type of keyboard
- Which task can AI help with?
- a) Writing documentation
- b) Suggesting tests
- c) Explaining errors
- d) All of the above ✅
Lesson 1.3 — Misconceptions About AI Coding
Duration: 45 minutes
Learning Objectives
- Identify 3 common myths about AI coding.
- Explain why AI cannot "just build the whole app."
- Understand that you still need to learn fundamentals.
- Recognize when to trust and when to double-check AI.
Instructor Notes
This lesson protects students from over-trusting AI. Use humor: "AI won't magically make you a billionaire coder overnight." Be honest that AI hallucinates (makes things up). Encourage curiosity plus skepticism.
Presentation Outline
- Myth 1: "AI can code anything perfectly" (10 min).
- Myth 2: "You don't need to learn to code" (10 min).
- Myth 3: "AI understands my project perfectly" (10 min).
- Real stories of AI mistakes (10 min).
- Healthy mindset: verify, learn, improve (5 min).
Demonstration
- Ask AI: "Build me a complete e-commerce site with payments." Show that the answer is generic and incomplete.
- Show an example where AI invents a fake function name or library.
- Demonstrate verifying by running the code and reading the error.
- Discuss: what would a real developer do next?
AI Prompts
- "What are common mistakes beginners make when using AI to write code?"
- "Give an example of a time AI might 'hallucinate' a fake function name in code."
Starter Code
Fill in the myth vs truth table:
Myth: "AI writes perfect code."
Truth: ___________________________________
Myth: "I don't need to learn coding."
Truth: ___________________________________
Final Code
Completed table:
Myth: "AI writes perfect code."
Truth: AI often makes errors and invents things; always test.
Myth: "I don't need to learn coding."
Truth: You must understand code to verify, fix, and secure it.
Exercises
- Exercise 1: Find one example online or from class where AI gave wrong code, and write what was wrong.
- Exercise 2: Write your own "healthy AI use" rule in one sentence.
- Exercise 3: Pair up: one person trusts AI blindly, the other verifies — act out the difference.
Homework
- Assignment 1: Write 3 personal rules you will follow when using AI for coding.
- Assignment 2: Ask an AI to "build a login system" and list 2 things missing from its answer.
Quiz
- Which is a common myth?
- a) AI helps write code
- b) AI can code anything perfectly without errors ✅
- c) AI can explain code
- d) AI can find bugs
- Why should you still learn coding fundamentals?
- a) They are required by law
- b) You need them to verify and fix AI output ✅
- c) They are fun only
- d) AI refuses otherwise
- What does "AI hallucination" mean?
- a) A dream
- b) AI confidently making up false info or fake code ✅
- c) A visual effect
- d) A type of bug in hardware
- Can AI build a complete real app from one prompt?
- a) Yes, always
- b) No, it needs iteration, testing, and human guidance ✅
- c) Only on weekends
- d) Only for games
- The healthiest attitude toward AI is:
- a) Trust it blindly
- b) Ignore it completely
- c) Verify, learn, and improve with it ✅
- d) Fear it