This lesson is in the early stages of development (Alpha version)

Wrap-up

Overview

Teaching: 10 min
Exercises: 0 min
Questions
  • What have we accomplished so far in our walk with the API response?

  • What are we going to do tomorrow?

Objectives

Key Points

  • Python programming can be relatively approachable when you get comfortable with the syntax and rules of computational thinking

🏆 Day 1 Wrap-Up Challenge: API Weather Advisor

You’ve learned:

  1. How data travels over the internet
  2. How to fetch and understand an API response
  3. How to work with different data types (text, numbers, dates)
  4. How to compare values and use conditional logic

Integrative exercise

Now, let’s put it all together. Imagine you queried a weather API and got back this response:

weather_data = {
   "city": "Singapore",
   "temperature": 32.5,
   "forecast": "sunny"
}

Your Task

Write a program that: Prints the city and temperature, rounding the temperature to 1 decimal place. Suggests an activity based on the forecast: “sunny” → “Great day for the beach!” “rainy” → “Stay indoors with a good book.” “cloudy” → “Perfect time for a walk in the park.” Anything else → “Just go shopping!” Stretch Goal 🌱 Add a check: if the temperature is above 35°C, regardless of forecast, print: “It’s too hot! Stay hydrated.”

Looking ahead

And that’s a wrap for Day 1! 🎉 Today you took your very first steps into Python — from learning how the internet shares information, to pulling data through an API, to making your code think with comparisons and decisions. That’s a lot to be proud of! Tomorrow we’ll take things up a notch: you’ll start writing your own reusable code with functions, learn how to handle errors without breaking a sweat, and even make your programs run repetitive tasks with minimal effort. By the end of Day 2, you’ll be putting all the pieces together into a script you can truly call your own. Get some rest — tomorrow we level up! 🚀