A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L5
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.
Summary
Nested deep inside the receipt. Pull every item out.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.