[no. 15]
Extracted text: def process(fruits, quantities, prices): i = 0 output- () for fruit in fruits: for qty in quantities: for price in prices: output.append( (fruit, qty, price)) į += 1 return output option A: def process(fruits, quantities, prices): groceries = zip(fruits, quantities, prices) return groceries option B: def process(fruits, quantities, prices ): i = 0 output = (1 for fruit in fruits: temp qty = quantities[i] temp price - prices[i] output.append( (fruit, temp_qty, temp_price)) i += 1 return output option C:
Extracted text: Given the following lists, how would you create a new list that matches the desired output? fruits = ['Apples', 'Oranges', 'Bananas'] quantities = [5, 3, 4] prices = [1.50, 2.25, 0.89] %3D #Desired output [[ 'Apples', 5, 1.50), ( 'Oranges', 3, 2.25), ('Bananas', 4, 0.89)]