I need to format four separate lists (not nested) that look like this:
header = ["Product:" ,"Price:" ,"Quantity:"]
productList = ["apple" ,"banana" ,"cake"]
productPrice = [3.50 ,6.82 ,23.00]
productQty = [134 ,52 ,5]
into a table that looks like this:
Product: Price: Quantity
Apple $3.50 134
Banana $6.82 52
Cake $23.00 5
I want this table to update with the original source lists. I know I will need to execute this with some sort of loop. So for example if I was to update the lists:
header = ["Product:" ,"Price:" ,"Quantity:"]
productList = ["apple" ,"banana" ,"cake" ,"newItem1"]
productPrice = [3.50 ,6.82 ,23.00 ,00.00]
productQty = [134 ,52 ,5 ,100]
the table would now look like:
Product: Price: Quantity
Apple $3.50 134
Banana $6.82 52
Cake $23.00 5
newItem1 $00.00 100
Any ideas? Any help, pointers, or tips would be useful.