4

Advanced Python

In the previous chapter, we got acquainted with the basics of Python programming syntax. While there was nothing specific to MicroPython and Micro:bit, the knowledge we learned is like a Swiss Army knife that can be used in every Python programming project.

In this chapter, we will continue our journey of exploring Python syntax. In the final part of this chapter, we will also explore some MicroPython- and Micro:bit-specific functionality. We will explore the following list of topics together:

  • Lists, tuples, and dictionaries
  • Functions
  • Recursion
  • Object-oriented programming with Python
  • Getting help for built-in modules
  • Retrieving system properties with code

Let’s explore advanced concepts in programming.

Technical requirements ...

Get BBC Micro:bit in Practice 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.