# Answering a Question by Hand, and Where It Breaks

A list of order dictionaries, a loop and a dictionary of running totals answer a coffee chain's question about sales by store in plain Python, and three more questions and one blank price show where hand-written code starts to strain, which is the problem a table library such as pandas solves.

![Cheat sheet: Answering a Question by Hand, and Where It Breaks](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/0b670c0fef6b4dea8796b5c24f651285.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: Dictionary (python), pandas, python, Running Total, Type Conversion (python), ValueError
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/data-by-hand-where-it-breaks-cheat-sheet
