Outschool
Open currency, time zone, and language settings
Log In

Python Programming | Advanced | Connected Data w/ the Weather API

In this class, we will write a python program to connect to a weather API, specify a location, and download realtime weather data.
Sidney - KidsSpeakCode
Average rating:
4.8
Number of reviews:
(1,187)
Class

What's included

1 live meeting
1 in-class hours
Homework
1 hour per week. Students will receive a copy of the code following the class and are encouraged to work with, and expand what it can do. This is a first step into the world of connected data, but there are practically endless API sources to explore.

Class Experience

In this course, we will continue on in python and write a program that connects to the Open Weather API. This is a great first step into the world of expanding python beyond your computer and connecting to the practically endless sources of API data. We will talk about different connected data applications, and how to take the JSON data the API endpoint returns and transform it into something we can use in our program. Connected applications are how most apps and programs work, taking data from one source, transforming it, and making it do something (in our case, displaying the weather). The end goal is a program that asks the user where they are, and we send that information to the API, and retrieve the temperature in Kelvin. We will then take that variable and convert it to Celsius and Fahrenheit and display it back to the user. Students will learn about passing strings, and working with data that is returned from the server in their python programs. The exciting thing about this program is that by working with live data, it can be customized to show results from any location in the API, and teaches students how to work with live server-based data in their programs. 

In the class, we will code the program collaboratively, and build the user interface. Students will be provided with the code we work on following the class for them to continue working on and expanding. We will write, test, and build the code in an iterative fashion, focusing on each element before we move forward. Students should have previously had exposure to python and understand how lists and dictionaries in python work.
Learning Goals
In this class, we will be talking about variables, strings, lists, dictionaries, APIs, JSON, and a number of other topics. Students will learn how to explore data from an API, and customize the requests sent to the endpoint. We will also explore how to use the data once it is locally saved.
learning goal

Other Details

External Resources
In addition to the Outschool classroom, this class uses:
Joined October, 2020
4.8
1187reviews
Profile
Teacher expertise and credentials
I love teaching programming using fun and interesting examples because it helps students go farther than learning hard to contextualize concepts. Understanding what we are doing and why means that students will be able to apply algebraic concepts (like x+y) having understood examples like (red bike + blue bike) in a way that has context and meaning. 

Reviews

Live One-Time Class
Share

$18

per class
Meets once
60 min

Completed by 1 learner
Live video meetings
Ages: 13-18
1-10 learners per class

About
Support
SafetyPrivacyCA PrivacyLearner PrivacyManage Data PreferencesTerms
Financial Assistance
Get The App
Download on the App StoreGet it on Google Play
© 2024 Outschool