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

Chapter 11: Summary

Summary

face Josiah Wang

We have finally reached the end of Lesson 3. Phew! We have actually covered a lot in this short space.

Hope you have managed to learn more not just about Python, but also about programming concepts and good Software Engineering practices when trying to develop a program.

Let’s have a quick recap. Ponder the questions below, and make sure you are able to answer them. Otherwise, go back and find out the answers before moving on to the next lesson.

  • What comparison operators can you use in Python?
  • Do you know how to use if and if-else statements?
  • Do you understand how to use elif?
  • Can you understand nested if statements?
  • Do you remember that you should first be clear about your problem and solution before starting to code?
  • What is a function?
  • Do you understand how functions can be useful in programming?
  • How do you call a function?
  • What is a function argument?
  • Do you understand how functions can return a value?
  • What is None?
  • What do we mean by side-effects of a function?
  • Do you know how to import a module?
  • Do you know how to call a function defined in a module?
  • What do we mean by composition in programming?
  • Do you understand the importance of abstraction in programming using functions and variables?
  • Do you remember about always testing your code while you code?
  • What does the pass statement do?
  • What do we mean by pseudorandom numbers?
  • Have you started commenting your code?
  • What kind of comments are considered good comments?

You have also learnt to add and commit files to a Git repository.

You have also started to write real programs that can solve problems using the tools that we have covered so far. Did you find it stimulating?

In the next lesson, we will continue to introduce you to more tools to help you develop programs to solve more complex problems in a more efficient way.

Now, take a well-deserved break and go do something else for a bit before resuming! Give your brain time to consolidate what you have learnt.

See you in the next lesson!