Read online · Grades 1–9
Primary & Middle School Computer Science
First computer science, age-adapted from Grade 1: what a computer is and what is inside it, the keyboard and ten-finger typing, files and folders, memory, storage and the operating system, bits and bytes and algorithms by hand, then Python from Grade 6 — variables, loops, functions, lists, files and data tables — through binary and hexadecimal, logic gates, how the internet works, HTML and CSS and first cryptography.
Sync your reading across devicesGrade 1 (Age 6–7)
Grade 2 (Age 7–8)
Grade 3 (Age 8–9)
- 5 Typing with Ten Fingers 11 solved exercises
- 6 Inside the Computer 10 solved exercises
- 7 Files and Folders 11 solved exercises
Grade 4 (Age 9–10)
- 8 Memory and Storage 11 solved exercises
- 9 Programs and the Operating System 10 solved exercises
- 10 Algorithms: Repeat and Decide 11 solved exercises
Grade 5 (Age 10–11)
- 11 Bits and Bytes: Counting in Binary 11 solved exercises
- 12 Text, Pictures and Sound as Numbers 11 solved exercises
- 13 Networks and the Internet: A First Look 11 solved exercises
Grade 6 (Age 11–12)
- 14 A First Python Program 12 solved exercises
- 15 Variables and Input 12 solved exercises
- 16 Repeating with for: Turtle Drawings 12 solved exercises
- 17 Decisions: if and else 12 solved exercises
- 18 Repeating with while 12 solved exercises
Grade 7 (Age 12–13)
- 19 Functions 12 solved exercises
- 20 Lists 12 solved exercises
- 21 Strings 12 solved exercises
- 22 How a Processor Runs a Program 12 solved exercises
- 23 Finding and Fixing Bugs 12 solved exercises
- 24 Project: A Quiz Game 12 solved exercises
Grade 8 (Age 13–14)
- 25 Binary and Hexadecimal 12 solved exercises
- 26 Dictionaries 12 solved exercises
- 27 Files and Data Tables 12 solved exercises
- 28 Searching and Sorting 12 solved exercises
- 29 How the Internet Works 12 solved exercises
- 30 Project: A Data Explorer 12 solved exercises
Grade 9 (Age 14–15)
- 31 Web Pages: HTML and CSS 12 solved exercises
- 32 Logic Gates and Boolean Algebra 12 solved exercises
- 33 Grids and Images 12 solved exercises
- 34 Algorithms on Numbers 12 solved exercises
- 35 Randomness and Simulation 12 solved exercises
- 36 Secret Codes: A First Look at Cryptography 12 solved exercises
- 37 Project: A Game on a Grid 12 solved exercises
37 chapters — 37 online so far, and more publishing regularly. The complete book is already available as a free PDF you can read online.
CC BY-NC-SA 4.0 (except where noted) · Credit: One Computer Science Book, One Course (one-course.com)