5

A Little More Python

We’ve introduced Python and we’ve been using it. In this chapter we increase our knowledge of Python and extend some of the concepts we have encountered, and also introduce new features. In particular, we examine data structures, starting with the way in which lists of elements or strings of characters can be processed. This chapter paves the way for Chapter 6, where we complete the design of a computer simulator. But, before that, we provide a note on the terminology we use when discussing features of Python.

We will discuss the following topics:

  • Statements and expressions
  • More string features
  • List comprehensions
  • String processing
  • Repetition and looping
  • The dictionary
  • Functions
  • Lists of lists
  • Imports
  • Indenting in Python ...

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.