Loading...

Every Line on the Receipt

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
senior

Problem

Transaction events arrive as nested structures: each has a store_id, a timestamp, and a list of purchased items. Flatten them into individual item records, each carrying the store_id, timestamp, item_name, and item_price from the parent transaction.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.