Lesson 7
Objects and Dictionaries
Chapter 1: Introduction
Recap
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 list
s, range
, tuple
s and str
s as sequence types that Python provide. I also introduced you to for
loops which are useful for iterating over sequences.
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.