Today We:
- Continued and finished the supermarket application!
- Reviewed some design concepts such as indentation, placement of functions, automation of some aspects of the program.
Homework:
- Create the reset() function in your Supermarket Application that restarts what you have purchased and the price you owe.
- Refer to the google notes on how to remove an item from a dictionary.
- Use for loop to erase the items in your dictionary so it becomes empty.
# your hw
def reset(self):
# reset the items_bought dictionary along with the price
# use a for loop to clean the dictionary - help
# set price = 0
pass
Notes:
Email me at ddjapri@ayclogic.com if you have any questions.