In this lesson, learners will use Python and the Pygal graphing library to visualize data about one of the most important issues facing our country: greenhouse gas emissions and their relation to climate change.
Watch a run through and tutorial of our “C02 Trends with Python” lesson plan, using Trinket:
If your learners are new to Python, begin with this Python Code-Along: “Intro to Computer Science”
Show learners how to navigate Trinket, as done in the video above. Demonstrate how to edit and run code. Show learners how to navigate within the course using the arrow keys (top, right).
Guide learners along through the Trinket lesson, or have learners progress at their own pace.
Main activity available at: http://bit.ly/trinket-data-vis-python
(also linked in the slides)
See “Advanced (Optional) Topics” section of Trinket course for Python extensions.
Reflect on what we learned from this data:
Brainstorm how your class can take action. What can we do to help (A) spread awareness, or (B) help solve this issue?
Make a plan for how to access students’ work in Trinket. You could sign up for Trinket Connect (https://trinket.io/schools) to collect projects, have students email you class links, or gather project links in a shared Google doc or blog.
Data visualization, line graphs, bar graphs, mapping data, environmental studies, cause and effect, carbon emissions, Canadian cities
Smoke Stacks image by Pixabay from Pexels.com