Skip to content
C

Excel Report from a List

Easypython

Create an Excel file with product data using openpyxl, then read it back and print every row.

Approach: build a workbook, append a header row plus one row per product, save it, then reload it and print each row's values.

Input: First line: the number of products n. Next n lines: name,price.

Output: One line per row (including the header): the row's values as a tuple.

Input (stdin)

Output

Run your code to see output here...