Complete for freeAbsolute beginner

Course 1

Computational Thinking and Coding Logic

This course teaches the thinking behind every programming language, using everyday problems: sharing computers fairly at a community center, steering a delivery robot around a room, printing hundreds of name labels, deciding whether a library book can be borrowed, and finding a name in a list. About half the work happens on paper, with unplugged puzzles like robots on a grid, scrambled recipes, and a deck of cards. The other half happens in Scratch 3, MIT's free block-based editor, where your algorithms run for real: you build a fair-share calculator, a delivery robot, pen drawings made with loops, a library kiosk, a buggy alarm clock to fix, and a number-guessing robot that uses binary search. Step-through animations show the same algorithms written in Python, so you can watch the computer follow each step and see its variables change, without needing to learn Python. Each module has a Notes lesson, a Build-along, and a Practice set with hints and worked solutions, and the course ends with an algorithm of your own that you design, test, and explain.

Free completion promise: Every lesson can be completed for $0: Scratch is free in the browser with no account needed, and the unplugged activities use only paper and a pencil (scraps of paper numbered 1 to 10 stand in for a deck of cards).

What's inside

  • 24hand-written lessons
  • 15videos
  • 14step-through animations
  • 24diagrams, charts & live previews
  • 44quiz questions
  • 136code examples

Before you begin

Requirements & setup for Computational Thinking and Coding Logic

Start with the complete free pathway below. Hardware, subscriptions, paid APIs, and cloud credits are never required.

Start here ยท free path

Your complete $0 setup

Every lesson can be completed for $0: Scratch is free in the browser with no account needed, and the unplugged activities use only paper and a pencil (scraps of paper numbered 1 to 10 stand in for a deck of cards).

$0 required

Setup checklist

0 of 7 complete

This checklist is a temporary setup aid and resets when the page reloads. Saved course progress begins in the setup lessons below.

  1. Everything required for this course is free. Paid software, APIs, cloud credits, GPUs, and physical equipment are optional.

    About 2 min
  2. Get a notebook (or a folder of paper) and a pencil with an eraser for planning and unplugged puzzles.

  3. Open Chrome, Edge, Firefox, or Safari and go to scratch.mit.edu/projects/editor.

    About 5 min
  4. Wait for the editor to load: block categories on the left, an empty code area in the middle, and the stage with an orange cat on the right.

    About 5 min
  5. Optional: with a parent or guardian, click Join Scratch on scratch.mit.edu to make a free account that saves projects online.

    About 5 min
  6. Optional: for offline use, install the Scratch app from scratch.mit.edu/download.

    About 5 min
  7. Scratch 3 (free, in the browser): Clicking the blue 'move (10) steps' block in the Motion category moves the cat a little to the right on the stage.

    About 5 min

Software

1 item

Scratch 3 (free, in the browser)

MIT's free block-based coding editor, used alongside a notebook and pencil for the unplugged activities. You snap blocks together instead of typing code, so every algorithm in the course can be built and tested in seconds without worrying about spelling or punctuation. It runs in any current browser with no account required, and there's a free offline app for Windows, macOS, and Chromebooks.

Course need
Scratch 3 (free, in the browser)
Free

MIT's free block-based coding editor, used alongside a notebook and pencil for the unplugged activities. You snap blocks together instead of typing code, so every algorithm in the course can be built and tested in seconds without worrying about spelling or punctuation. It runs in any current browser with no account required, and there's a free offline app for Windows, macOS, and Chromebooks. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.

  1. Get a notebook (or a folder of paper) and a pencil with an eraser for planning and unplugged puzzles.
  2. Open Chrome, Edge, Firefox, or Safari and go to scratch.mit.edu/projects/editor.
  3. Wait for the editor to load: block categories on the left, an empty code area in the middle, and the stage with an orange cat on the right.
  4. Optional: with a parent or guardian, click Join Scratch on scratch.mit.edu to make a free account that saves projects online.
  5. Optional: for offline use, install the Scratch app from scratch.mit.edu/download.

Hardware

Nothing required

No physical hardware is needed for this course.

Accounts

Nothing required

No external account is needed for this course.

What you will be able to do

Learning outcomes

  • Describe any problem by its goal, inputs, constraints, and output, and decompose it into pieces small enough to solve.
  • Write exact, ordered algorithms in plain English, as flowcharts, and as Scratch scripts, and track their state step by step.
  • Spot repeated steps and replace them with counting or condition-controlled loops, including loops inside loops.
  • Plan decisions with if/else and combined conditions, and test the edge cases where rules break.
  • Find and fix bugs by predicting, tracing by hand, and comparing expected results with actual ones.
  • Compare two correct algorithms, such as linear and binary search, by counting the steps each one takes.

Build real work

Assignments & capstone

Free tools accepted

Shape-drawing helper

Plan a Scratch program as separate pieces on paper, then build it: ask for a number of sides and petals, and draw the pattern with the Pen extension using a loop inside a loop. Test it with inputs like 0 and 1.

Every lesson can be completed for $0: Scratch is free in the browser with no account needed, and the unplugged activities use only paper and a pencil (scraps of paper numbered 1 to 10 stand in for a deck of cards). Submit your project file, or screenshots with descriptions, or a short demo.

Rule-checking kiosk with a test plan

Build a Scratch kiosk that asks a few questions, applies a set of rules in order, and explains every "no". Write a test table of edge cases before you run it, and keep a fix log for every bug you find.

Every lesson can be completed for $0: Scratch is free in the browser with no account needed, and the unplugged activities use only paper and a pencil (scraps of paper numbered 1 to 10 stand in for a deck of cards). Submit your project file, or screenshots with descriptions, or a short demo.

Final assessment

Design and defend an algorithm

Design, build, and test a Scratch algorithm for a maze, a puzzle, a sorting task, or a real-world process, with at least one decision and one loop, then explain its inputs, outputs, steps, edge cases, and results. Deliverables: Scratch project that runs the algorithm, Algorithm card with plain-English steps and a flowchart, Test table with 8+ tests, including edge cases, Fix log with the cause and fix of each bug, and 2 to 3 minute explanation (talk, video, or one page).

Prerequisites & pacing

Skills assumed

  • None. If you can follow a recipe and use a mouse, you're ready.

Recommended prior courses

None โ€” this course is a starting point.

Choose your pace

  • self paced: 6 weeks at 3 hours per week
  • weekly: 6 weeks at 3 hours per week

Part of these learning paths

Course created by Zafir Shamsi.