Skip to content

feature: Add a new Python exercise based on Carbon Footprint Calculation #4304

Description

Description

I would like to propose a new exercise for the Python track focused on an environmental theme: A Carbon Footprint Calculator.

This exercise will help students practice basic arithmetic operations, conditional logic (if/else), and working with dictionaries (storing emission factors) while learning about sustainability.

Learning Objectives

  • Variables and basic data types.
  • Control flow (conditionals).
  • Simple math formulas in Python.

Exercise Scenario

The student will write a function that takes a user's daily habits (e.g., kilometers driven, dietary choices, electricity usage) and returns their estimated daily CO2 emissions based on provided standard coefficients.

Additional Context

Connecting coding challenges with real-world issues like climate change can make learning Python more engaging and meaningful for new developers. I would be happy to help design the test cases or write the description for this exercise!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions