A day at the Supermarket

THE OBJECTIVE OF THIS LAB IS TO LEARN HOW DICTIONARIES CAN BE USEFUL.

BY DEFINING THE DICTIONARY YOU WILL BE ABLE TO KEEP COUNT OF THE ITEMS IN THE STOCK AND THE PRICES IN THE SUPERMARKET “YOU OWN”.  YOU CAN SEE THAT USING THE FOR LOOP AND ITERATING THROUGH EACH ITEM OF THE LISTS YOU CAN OBTAIN A TOTAL VALUE OF WHAT YOU HAVE IN STOCK AND SO ON.
1 2 3 4 5 6 7 8 9 10 11