Programming basics

Sequence, output, functions, errors, variables, input, data types and arithmetic: the start of GCSE programming, with a robot that talks, drives and plays notes.

Module F1GCSE10 lessons

Start in the simulator
  1. F1.1 What a program is Instructions, one at a time, top to bottom. Running code and reading what comes back.
  2. F1.2 Output: print Print text and numbers, several things at once.
  3. F1.3 Calling functions Arguments, telling and asking, and notes on the robot's buzzer.
  4. F1.4 Errors: syntax, runtime and logic Reading an error message, and the three kinds of error by their exam names.
  5. F1.5 Comments and readable code Comments, names, blank lines: code a person can read and change.
  6. F1.6 Variables, constants and assignment Storing, changing and naming values, and constants that never change.
  7. F1.7 Input from the user Asking questions with input(), and why every answer is text.
  8. F1.8 Data types and casting Integer, real, Boolean, character and string, and converting between them.
  9. F1.9 Arithmetic operators The seven operators, integer division and remainder, and the order they work in.
  10. F1.10 Project: ask and drive Plan, build and test one program that asks, drives a square, plays notes and reports.