Complete the code to export the BOM as a CSV file.
export_bom(filename=[1])The filename must be a string with quotes, so "bom.csv" is correct.
Complete the code to include the quantity column in the BOM export.
export_bom(columns=["Part", [1], "Value"])
The quantity column is named "Quantity" and should be included in the columns list.
Fix the error in the code to filter BOM items with quantity greater than 1.
filtered_bom = [item for item in bom if item["Quantity"] [1] 1]
To filter items with quantity greater than 1, use the '>' operator.
Fill both blanks to create a dictionary of part counts from the BOM list.
part_counts = {item[[1]]: item[[2]] for item in bom}The dictionary keys are part names ("Part") and values are quantities ("Quantity").
Fill all three blanks to generate a filtered BOM with parts having quantity greater than 2 and export it.
filtered = [item for item in bom if item[[1]] [2] [3]] export_bom(data=filtered)
Filter by quantity greater than 2 using item["Quantity"] > 2.
