πŸ§‘β€πŸ« Week 03 Lecture

Loops and functions in Python

Author
Published

13 October 2024

Image created with the AI embedded in MS Designer using the prompt 'abstract salmon pink light blue icon depicting the metaphysical experience of cleaning up, reshaping, pivoting, and manipulating data in search of the purest insights in data science.'

Last updated: 13 October 2024 12pm

Many people are struggling to grasp the notion of lists and dictionaries. Because these are essential to a good understanding of the concept of vectorised operations we will learn with the pandas library, I rewrote the W03 Lecture to act as a recap of the Python concepts we’ve been exploring since πŸ’» W01 Lab.

πŸ“‹ Preparation

  1. Visit GitHub and create an account if you don’t have one yet.
    • πŸ’‘ Throughout this course we will encourage you build a professional coding portfolio on GitHub, so it is important to choose a professional username for your account.
  2. Try to complete the πŸ“ W03 Formative Exercise. Even if you don’t manage to go too far, it will help you come well-prepared to the lecture.

πŸ“ƒ Schedule

πŸ“Location: Thursday 17 October 2024, 4 pm - 6 pm at CLM.5.02

I will use the lecture to work on a solution to πŸ“ W03 Exercise. There will be a short break near 5pm.

πŸ“ Lecture Notes

πŸ“‹ TAKE NOTE:

  • You won’t find β€œslides for studying” in this course. I do use slides in my lectures, but they serve as a visual aid to help me organise my thoughts. I tend to post those slides after the lecture on Slack, along with other links and resources.

  • Let me know if you want me to add notes on any specific topic or expand on something you might want to revisit later.

Click on the button below to download a final version of the notebook I started to build on the lecture.

PS: I am putting together a few tips on how to write functions and loops in Python based on questions I got from you and the key things I mentioned during the lecture. Once this material is ready, I will add it here but some of it will go to the Python Guides page. In the meantime, you can check out the lecture recording (on Moodle).