Outschool
開啟貨幣、時區和語言設置
登入

Python 程式設計 |高級|透過天氣 API 連接數據

在本課程中,我們將編寫一個 Python 程式來連接到天氣 API、指定位置並下載即時天氣資料。
Sidney - KidsSpeakCode
平均評分:
4.8
評論數量:
(1,187)
班級

包含什麼

1 現場會議
1 上課時間
作業
每週 1 小時. 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.
我們無法翻譯此文,請刷新頁面並再試一次。

課堂經歷

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.
學習目標
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.
學習目標

其他詳情

外部資源
除了 Outschool 教室外,本課程也使用:
已加入 October, 2020
4.8
1187評論
教師檔案
教師專業知識和證書
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. 

評論

一次性直播課程
分享

US$18

每班
單堂課
60 分鐘

有1 位學習者完成此課程
即時視訊會議
年齡: 13-18
1-10 每班學員人數

關於
支援
安全隱私加州隱私學習者隱私管理資料首選條款
下載這個軟體
在應用程式商店下載在 Google Play 上取得
© 2024 校外