A Day at the Supermarket Lab #8

Day at supermarket1 Day at supermarket2 Day at supermarket3 Day at supermarket4 Day at supermarket5 Day at supermarket8 Day at supermarket9 Day at supermarket11 Day at supermarket12 Day at supermarket13 Day at supermarket17

On today’s lab we learned more about lists and dictionaries. A dictionary has a key and a value. We also used previous things learned, such as lists, for loops, append, and delete. Overall the first part was easy, there were some parts such as “Maintaining Order”, and “More of for”. The second part of the lab was “A Day at the Supermarket”. The lab basically required us to create a code where we could simulate a day at a supermarket. We created a list of several fruits, gave it an amount of stock, and prices. Lastly we found we calculated the total price.

The lab was pretty easy compared to the last lab. The concept wasn’t hard to understand, and most of the stuff were things we previously learned, so it made it easier.

 

Comments are closed.