list comprehension of a nested list to update list element on that nested list in python : <p>I have below snippets. I have used <strong>for loop</strong> to get 'updated_orders'. How can I make list comprehension to get 'updated_orders'. </p>

<pre><code>orders = [[30, 'Seana', 'Nutter', 5, 'Classic Leather Jacket', 7, '$94.26'], 
          [13, 'Katy', 'Furmonger', 2, 'Yellow Wool Jumper', 1, '$175.31']]

updated_orders = []

for order in orders:
    order.append(order[5] * float(order[6].split('$')[1]))
    updated_orders.append(order)

print(updated_orders)
</code></pre>

<p>output:</p>

<pre><code>[[30, 'Seana', 'Nutter', 5, 'Classic Leather Jacket', 7, '$94.26', 659.82], 
[13, 'Katy', 'Furmonger', 2, 'Yellow Wool Jumper', 1, '$175.31', 175.31]]
</code></pre>
