Samwise has already parsed the shopping data related to Mr.Frodo and stored it in a list cart
. He would now like to iterate over all of the entries in the list and get the total price for each item ordered. i.e using quantity * price.
Help him write a program to iterate over the tuples in the cart and calculate the total price for each item. Print The total price for ITEM
is X
for every item.