DS105 2025-2026 Autumn Term Icon

πŸ–₯️ Week 02 Lecture

Python Fundamentals, Collections and First Steps with APIs

Author

Dr Jon Cardoso-Silva

Published

15 October 2025

πŸ“ Logistics

Time and Location: Thursday, 9 October 2025, 16:00 - 18:00, CLM 5.02

This is our second live session together. By now, you should have completed the πŸ“ Week 02 Practice with the DataQuest lessons on variables, data types, and lists.

πŸ“‹ Preparation

  • Complete the πŸ“ W02 Practice (DataQuest lessons)
  • Review Python basics: variables, data types, integers, floats, strings, and lists
  • Join the Slack workspace if you haven’t already

πŸ—£οΈ Lecture Overview

  • DataQuest debrief: connecting what you’ve learned to real data work
  • Markdown basics: formatting your notebooks and Slack messages
  • How computers store data: binary, memory addresses, and variable references
  • Collections in practice: when to use lists vs dictionaries
  • After the break: collecting live data from APIs
  • Synthesis: connecting dictionaries to the DataFrames you used in Week 01

🎬 Lecture Slides

Use keyboard arrows to navigate. Select the slides below or view fullscreen.

Or download the slides directly as a PDF:

DOWNLOAD

Memory Model Concepts: Understanding how Python stores data in memory helps you understand why some operations are fast and others are slow. The slides walk through how integers, floats, and collections work at the binary level.

Open-Meteo API: During the live demo, we’ll connect to the Open-Meteo weather API to fetch real-time temperature data. This demonstrates how dictionaries and lists work with actual data structures you’ll encounter throughout the course.

πŸ”– Appendix

Post‑Lecture Actions

  • Review today’s lecture slides
  • Skim the πŸ’» W02 Lab instructions
  • Practice using Markdown in Slack messages
  • Post questions in #help on Slack

Useful Links

Looking Ahead

  • Next week: JSON normalisation, Git basics, and the terminal
  • Key transition: Transforming messy JSON data into clean pandas DataFrames