Module 2: Free AI Coding Tools
Course: Programming with Free AI Tools — Build Real Websites and Apps | Audience: Ages 15–25, beginners | Module Goal: Learn to set up and use free AI coding tools, and compare their strengths.
Teaching Principle: Free tiers change often. Always verify the current free offer on the official site before relying on it.
Lesson 2.1 — Getting Started with ChatGPT and Gemini
Duration: 50 minutes
Learning Objectives
- Create a free account on ChatGPT and Gemini.
- Understand the difference between a chat AI and a coding assistant.
- Write your first coding question to an AI.
- Compare ChatGPT and Gemini for code help.
Instructor Notes
Walk students through sign-up live. Use school email if allowed. Show the chat interface. Warn about sharing passwords or personal data. Keep prompts simple and specific.
Presentation Outline
- Overview of free AI chat tools (5 min).
- Live sign-up for ChatGPT (10 min).
- Live sign-up for Gemini (10 min).
- Anatomy of a good coding question (10 min).
- Side-by-side comparison (10 min).
- Safety and privacy tips (5 min).
Demonstration
- Go to chat.openai.com and create a free account.
- Go to gemini.google.com and create a free account.
- In ChatGPT, type: "Write a hello world program in Python."
- In Gemini, type the same prompt.
- Compare the two answers with the class.
- Show how to copy code into a file and run it.
AI Prompts
- "Write a 'Hello, World!' program in Python and explain each line."
- "Compare ChatGPT and Gemini for helping a beginner learn coding."
Starter Code
# Starter: write a program that prints your name
# TODO: use the print() function
Final Code
# Final
print("Hello, World!")
print("My name is Alex")
Exercises
- Exercise 1: Create accounts on both tools and save the links in your notes.
- Exercise 2: Ask each tool the same coding question and note one difference.
- Exercise 3: Ask an AI to explain the
print() function in Python.
Homework
- Assignment 1: Write 3 coding questions you plan to ask AI this week.
- Assignment 2: Use Gemini to generate a short HTML snippet and paste it into a file named
test.html.
Quiz
- Which is a free AI chat tool?
- a) ChatGPT ✅
- b) Microsoft Word
- c) A calculator
- d) Notepad
- Before trusting a free AI tool, you should:
- a) Assume it is unlimited
- b) Verify the current free offer on the official site ✅
- c) Pay immediately
- d) Ignore updates
- What should you NOT share with an AI chat tool?
- a) A coding question
- b) Passwords or personal data ✅
- c) A math problem
- d) A poem
- A good coding question is:
- a) "Do my homework"
- b) Specific and clear, e.g. "Write a Python function to add two numbers" ✅
- c) "Fix everything"
- d) One word: "code"
- Gemini is made by:
- a) OpenAI
- b) Google ✅
- c) Apple
- d) Microsoft
Lesson 2.2 — DeepSeek and Qwen
Duration: 50 minutes
Learning Objectives
- Set up free accounts for DeepSeek and Qwen.
- Understand that multiple free models exist worldwide.
- Compare DeepSeek and Qwen with ChatGPT and Gemini.
- Choose the right tool for a task.
Instructor Notes
DeepSeek (China) and Qwen (Alibaba) are strong free alternatives. Show their web interfaces. Mention they also have open models. Encourage students to try several and pick what works best.
Presentation Outline
- Why use more than one AI tool (5 min).
- DeepSeek overview and sign-up (10 min).
- Qwen overview and sign-up (10 min).
- Live coding comparison (10 min).
- When to use which tool (10 min).
- Tracking free limits (5 min).
Demonstration
- Open chat.deepseek.com and create a free account.
- Open chat.qwen.ai (or the official Qwen site) and create an account.
- Ask all four tools: "Write a JavaScript function to reverse a string."
- Display answers and compare clarity and correctness.
- Run the best one in a browser console to verify.
AI Prompts
- "Write a JavaScript function that reverses a string and explain it."
- "What are the differences between DeepSeek, Qwen, and ChatGPT for coding?"
Starter Code
// Starter: reverse a string
function reverseString(str) {
// TODO: return the reversed string
}
Final Code
// Final
function reverseString(str) {
return str.split("").reverse().join("");
}
console.log(reverseString("hello")); // "olleh"
Exercises
- Exercise 1: Create DeepSeek and Qwen accounts and bookmark them.
- Exercise 2: Ask each tool to explain "what is a variable" and compare answers.
- Exercise 3: Pick one tool as your "default" and write why.
Homework
- Assignment 1: Solve one coding problem using DeepSeek and one using Qwen; note which you preferred.
- Assignment 2: List 3 tasks where a free AI chat tool helps you most.
Quiz
- DeepSeek is:
- a) A paid-only tool
- b) A free AI model/tool ✅
- c) A programming language
- d) A database
- Qwen is developed by:
- a) Google
- b) Alibaba ✅
- c) OpenAI
- d) Meta
- Why use multiple AI tools?
- a) They are all identical
- b) Different tools may give better or clearer answers for different tasks ✅
- c) It is required
- d) To waste time
- Before relying on a free tier you should:
- a) Never check
- b) Verify current free limits on the official site ✅
- c) Assume it is forever
- d) Pay secretly
- The best way to choose a tool is to:
- a) Guess
- b) Try tasks and compare results ✅
- c) Use only the most famous one
- d) Ask a friend randomly
Lesson 2.3 — GitHub Copilot Free
Duration: 50 minutes
Learning Objectives
- Understand what GitHub Copilot Free offers.
- Set up Copilot Free in a code editor like VS Code.
- Use AI autocomplete while writing code.
- Know the difference between chat AI and in-editor AI.
Instructor Notes
Copilot works inside your editor and suggests code as you type. It needs a GitHub account and VS Code (free). Show autocomplete live. Explain it is different from chat tools: it is context-aware inside your files.
Presentation Outline
- What is GitHub Copilot (5 min).
- Creating a GitHub account (5 min).
- Installing VS Code and the Copilot extension (10 min).
- Live autocomplete demo (15 min).
- Copilot Chat vs Copilot completions (10 min).
- Free tier limits and ethics (5 min).
Demonstration
- Create a GitHub account at github.com.
- Install VS Code from code.visualstudio.com.
- Install the "GitHub Copilot" extension.
- Sign in with the free plan.
- Type
function add( and watch Copilot suggest the body. - Accept, then read and run the code to verify.
AI Prompts
- "Explain how to set up GitHub Copilot Free in VS Code step by step."
- "What is the difference between GitHub Copilot and ChatGPT for coding?"
Starter Code
// Starter: let Copilot suggest the body
function add(a, b) {
// TODO: Copilot may suggest: return a + b;
}
Final Code
// Final (with Copilot suggestion accepted and verified)
function add(a, b) {
return a + b;
}
console.log(add(2, 3)); // 5
Exercises
- Exercise 1: Install VS Code and enable Copilot Free (or use the chat tool if unavailable).
- Exercise 2: Write a function with Copilot's help and explain every line yourself.
- Exercise 3: Compare a Copilot suggestion with a ChatGPT answer for the same task.
Homework
- Assignment 1: Use Copilot (or a chat tool) to write a small script and submit the code plus your explanation.
- Assignment 2: Write 2 pros and 2 cons of in-editor AI vs chat AI.
Quiz
- GitHub Copilot mainly works:
- a) In a web browser only
- b) Inside a code editor like VS Code ✅
- c) On a phone call
- d) As a game
- To use Copilot Free you need:
- a) A GitHub account ✅
- b) A Facebook account
- c) Nothing
- d) A paid certificate
- Copilot "completions" means:
- a) Finishing your sentences in email
- b) Suggesting code as you type ✅
- c) Compiling code
- d) Deleting code
- You should accept Copilot suggestions:
- a) Without reading
- b) After reading and verifying them ✅
- c) Never
- d) Only on Fridays
- Copilot Free is different from ChatGPT because it is:
- a) More expensive
- b) Context-aware inside your editor files ✅
- c) A different language
- d) Not AI
Lesson 2.4 — Practical Tool Comparison and Workflow
Duration: 45 minutes
Learning Objectives
- Compare all five tools in a table.
- Build a personal AI-assisted workflow.
- Decide which tool to use for chat vs editor tasks.
- Practice verifying output across tools.
Instructor Notes
Synthesis lesson. Have students make a cheat-sheet. Remind them free tiers vary by region and time. The goal: a repeatable workflow, not tool hopping.
Presentation Outline
- Recap the 5 tools (5 min).
- Build a comparison table together (15 min).
- Define a starter workflow (10 min).
- Live multi-tool verification challenge (10 min).
- Wrap-up and cheat-sheet (5 min).
Demonstration
- Open a comparison table on screen.
- Ask the same bug-fix question to ChatGPT, Gemini, DeepSeek, Qwen.
- Pick the clearest fix, paste into VS Code or Copilot, run it.
- Show that verification is the same no matter the tool.
AI Prompts
- "Create a comparison table of ChatGPT, Gemini, DeepSeek, Qwen, and GitHub Copilot for beginner coding."
- "Suggest a simple workflow for a beginner using free AI tools to build a website."
Starter Code
My AI Workflow Cheat-Sheet
- Ask concept questions in: ___________________
- Generate code in: ___________________
- Autocomplete in editor with: ___________________
- Verify by: ___________________
Final Code
Example Cheat-Sheet
- Ask concept questions in: ChatGPT or Gemini
- Generate code in: DeepSeek or Qwen
- Autocomplete in editor with: GitHub Copilot Free
- Verify by: running the code and reading errors
Exercises
- Exercise 1: Fill in your own cheat-sheet and save it.
- Exercise 2: Solve one problem using two different tools and note which was clearer.
- Exercise 3: Teach a classmate your workflow in 1 minute.
Homework
- Assignment 1: Write a 200-word reflection: "Which free AI tool fits me best and why."
- Assignment 2: Build a bookmark folder with all five tools and your editor.
Quiz
- Which tool gives in-editor autocomplete?
- a) GitHub Copilot Free ✅
- b) Gemini chat
- c) A web browser
- d) Notepad
- A good beginner workflow includes:
- a) Only one tool forever
- b) Ask, generate, autocomplete, and verify ✅
- c) Copy without testing
- d) No planning
- Free tiers should be:
- a) Ignored
- b) Verified on official sites as they change ✅
- c) Assumed permanent
- d) Paid secretly
- Verifying output means:
- a) Trusting the tool
- b) Running code and checking results ✅
- c) Deleting it
- d) Posting online
- The main point of this module is:
- a) Use one tool only
- b) Learn several free tools and verify their output ✅
- c) Avoid AI
- d) Pay for everything
الوحدة 2: أدوات كتابة الأكواد بالذكاء الاصطناعي المجانية
الدورة: البرمجة بأدوات الذكاء الاصطناعي المجانية — بناء مواقع وتطبيقات حقيقية | الجمهور: أعمار 15–25، مبتدئون | هدف الوحدة: تعلّم إعداد واستخدام أدوات كتابة الأكواد المجانية ومقارنة مزاياها.
مبدأ التدريس: عروض الخطط المجانية تتغير باستمرار. تحقق دائماً من العرض الحالي على الموقع الرسمي قبل الاعتماد عليها.
الدرس 2.1 — البدء مع ChatGPT و Gemini
المدة: 50 دقيقة
أهداف التعلم
- إنشاء حساب مجاني على ChatGPT و Gemini.
- فهم الفرق بين دردشة الذكاء الاصطناعي ومساعد البرمجة.
- كتابة سؤال برمجة أولي للذكاء الاصطناعي.
- مقارنة ChatGPT و Gemini لمساعدة البرمجة.
ملخّص: أنشئ حسابات، جرّب سؤالاً واحداً مثل "اكتب برنامج Hello World في Python"، واقارن بين الأجرارتين. الكود والتمرينات موجودة بالنسخة الإنجليزية أدناه.
الدرس 2.2 — DeepSeek و Qwen
المدة: 50 دقيقة
أهداف التعلم
- إعداد حسابات مجانية لـ DeepSeek و Qwen.
- فهم توفّر نماذج مجانية متعددة عالمياً.
- مقارنة DeepSeek و Qwen مع ChatGPT و Gemini.
- اختيار الأداة المناسبة للمهمة.
ملخّص: جرّب DeepSeek و Qwen، واسألهما نفس السؤال (مثل reversing string)، وقارن الوضوح. الكود والتمرينات موجودة بالنسخة الإنجليزية أدناه.
الدرس 2.3 — GitHub Copilot المجاني
المدة: 50 دقيقة
أهداف التعلم
- فهم ما يقدمه GitHub Copilot المجاني.
- إعداد Copilot المجاني في محرر أكواد مثل VS Code.
- استخدام الإكمال التلقائي للذكاء الاصطناعي أثناء الكتابة.
- معرفة الفرق بين دردشة الذكاء الاصطناعي والذكاء الاصطناعي داخل المحرر.
ملخّص: Copilot يكمل أكوادك تلقائياً داخل المحرر وهو مختلف عن أدوات الدردشة. التمرينات والكود موجودة بالنسخة الإنجليزية أدناه.
الدرس 2.4 — مقارنة عملية وسير العمل
المدة: 45 دقيقة
أهداف التعلم
- مقارنة الأدوات الخمس في جدول.
- بناء سير عمل شخصي بمساعدة الذكاء الاصطناعي.
- تحديد الأداة المناسبة للمهام المختلفة.
- التدرب على التحقق من النتاج عبر الأدوات.
ملخّص: اصنع ملخصك الخاص: اسأل المفاهيم في أداة، ولّد الكود في أخرى، واكتب تلقائياً في المحرر، ثم تحقق بالتشغيل. الكود والتمرينات موجودة بالنسخة الإنجليزية أدناه.