Learn

Perfect! You’ve done a great job with lists and dictionaries in this project. You’ve practiced:

  • Using for loops with lists and dictionaries
  • Writing functions with loops, lists, and dictionaries
  • Updating data in response to changes in the environment (for instance, decreasing the number of bananas in stock by 1 when you sell one).

Thanks for shopping at the Codecademy supermarket!

Instructions

1.

Print your result and click Run to finish this course.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?