π§βπ« Week 02 Lecture
Python Collections & First Steps with APIs
π₯
Learning Goals
By the end of this lecture, you should be able to: i) Understand how Python stores and manages lists & dictionaries. ii) Compare and manipulate data using collections and nested structures. iii) Explain what APIs are and why they are essential for data retrieval. iv) Use the requests
package to fetch and process real-world data from Open-Meteo.
![DS105W course icon](../../../../figures/visual-identity/2024_2025_DS105W_icon_200px.png)
Last Updated: 30 January 2025, 09:00 GMT
πTime and Location: Thursday, 30 January 2025 from 4-6 pm at MAR.1.04.
Today, we continue building our Python foundations by working with collections (lists & dictionaries) and learning to fetch data from APIs, a crucial skill for real-world data science.
π Preparation
To get the most out of this lecture:
- Complete the π W02 Formative Exercise.
- Review the key concepts from π» W01 Lab.
- Familiarise yourself with Markdown syntax and Python collections (lists & dictionaries).
- Check the π Syllabus for this weekβs plan.
π¬ Lecture Slides
Use keyboard arrows to navigate. Select the slides below or view fullscreen.
Or download the slides directly as a PDF:
π₯ Post-Lecture Actions
- Revisit todayβs slides and experiment with API requests.
- Attend the π» W02 Lab for hands-on API work.
- Try modifying the API request: can you retrieve, say, wind speed or rain levels?
- Use the
#help
channel β ask, discuss, and learn together.
βοΈ Next week: How do we store API data efficiently? Letβs find out!