Question 3: CSV|Chart

Olivia is passionate about environmental conservation and wants to keep track of the energy consumption and waste reduction efforts in her community. She decides to collect data from households on their monthly energy usage, recycling habits, and waste generation. Additionally, she plans to visualize this data to promote awareness and encourage others to adopt sustainable practices.

Olivia’s tasks involve several steps:

  1. Collect Monthly Environmental Data:

    • Olivia needs to gather data from each household, including energy usage (in kWh), amount of waste generated (in kg), and percentage of waste recycled.
  2. Save Data to CSV:

    • After collecting the data, Olivia will save this information to a CSV file named environmental_data.csv.
  3. Visualize Environmental Data:

    • Olivia wants to create bar charts to visualize the average energy usage, waste generation, and recycling rates for each household.

Let’s create a Python program to help Olivia with her tasks.

Write what you are looking for, and press enter to begin your search!