Planning a Picnic Shopping List

Build a reusable Python planner that combines shared recipe ingredients, deducts pantry stock, and exports whole-package purchases as CSV.

ProjectPython

Introduction

Planning a Picnic Shopping List is a practical Python project for learners who know lists, dictionaries, loops and functions. Turn recipes, a guest count, pantry stock and package sizes into a shopping list you can use again when plans change.

One Guided Lab starts with a small working example, then teaches shared-ingredient totals, stock deductions and whole-package purchases. One independent Challenge applies those ideas to a different menu with separate products that share a name. Each unit starts with its own prepared files.

What You Will Learn

  • Combine per-person recipe quantities by ingredient ID before deciding what to buy.
  • Use existing stock, keep zero-purchase rows and calculate whole packages and final leftovers.
  • Read JSON inputs and understand the provided Python code for command options and CSV writing.
  • Produce real CSV lists with a reusable program, preserve original data and recover from invalid input.

Who This Course Is For

This course is for Python learners ready to turn familiar collections and functions into a small data tool.

Prerequisites: Python lists, dictionaries, loops, functions, basic exceptions and basic terminal input. JSON, CSV and the required command options are introduced in the Guided Lab.

Learning environment: A browser-based WebIDE with Python and all synthetic recipe files is prepared for each unit. The project uses the standard library; no local installation or external account is needed.

Frequently Asked Questions

Will I write code?

Yes. You improve the calculation module while provided picnic.py code handles command options and CSV writing. The Guided Lab explains that code and provides complete operations.

What will I finish with?

A reusable Python planner and CSV lists showing requirements, stock, shortages, package purchases and leftovers. The Challenge uses a new menu, not a previous unit's files.

Does this handle any recipe or measurement?

The project uses nonnegative integer quantities and one declared unit per ingredient. It does not convert units, calculate nutrition or integrate with a shop.

Teacher

labby
Labby
Labby is the LabEx teacher.