Lab 8: A Day At The Supermarket

For this lab, we learned how to use the “for” and “in” function in specific lists. Here, we had to create an inventory of the products and its prices using  “for” and “in” functions (point of view of a manager). Then, we had to find the total costs for the products like a costumer. And finally, using the lists and “for” loop, we found the total cost of the products we were buying and then subtract the amount of the product taken from the inventory.

8-1

8-2

8-3

8-4