This is an archived version of the course. Please find the latest version of the course on the main webpage.

Chapter 1: Introduction

Recap

face Josiah Wang

Welcome back!

In the first five lessons, we covered the basics of programming - using simple data types, and writing modular and self-explanatory codes with functions.

In Lesson 6, I introduced you to more complex data structures, namely sequences. We covered lists, range, tuples and strs as sequence types that Python provide. I also introduced you to for loops which are useful for iterating over sequences.

List indexing

You have practised applying all these to some practical problems (computing the cumulative sum, generating Fibonacci sequences), as well as to your robot project.

I also discussed test driven development (TDD) as using extensive test cases to drive the development of your programs. I also presented breakpoints as another method of debugging your programs. In any case, always remember to incrementally test while you code!

We also briefly revisited git checkout and used it as a way to view previous versions of your files.