Table of Contents
Preface
Part 1: Using Python to Simulate a Computer
1
From Finite State Machines to Computers
Technical requirements
The finite state machine
Traffic lights example
Solving a simple problem algorithmically
Constructing an algorithm
Summary
2
High-Speed Introduction to Python
Technical requirements
Reading programs
Getting started with Python
Python’s data types
Mathematical operators
Names, values, and variables
Comments
The list – a Python key data structure
Slicing lists and strings
Functions in Python
Conditional operations and decision-making
Using a conditional expression in Python
Python’s if … else
Reading data from a file
Computer memory
Register transfer language
Summary
3
Data Flow in a Computer
Technical requirements ...
Get Computer Architecture with Python and ARM now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.