Chapter 7 Python Code Alongs

In these code alongs, we travel beneath Python to binary, hexadecimal, and assembly language, writing our programs in Visual X-TOY, a simulator of a simple virtual computer. Work through them in order; each lesson contains the video in which we explore the ideas and write the programs together.

  1. The CPU, Memory, and Binary
  2. Hexadecimal: A Shorthand for Binary
  3. Meet X-Toy, a Virtual Computer
  4. Bitwise Operations in X-Toy: AND, XOR, Shifts, and Bit Masks
  5. Negative Numbers and Two’s Complement in X-Toy
  6. Indirect Memory, Branching, and If/Else in X-Toy
  7. Loops and Functions in X-Toy: Multiplication
Scroll to Top
Programming for Lovers banner no background
programming for lovers logo cropped

Join our community!