1. 학습
  2. /
  3. 강의
  4. /
  5. Introduction to Python for Developers

Connected

연습 문제

Checking values

Great! Your shopping list is working. Let's quickly count how many items we have in our shopping list before building the final scaled version.

지침

100 XP
  • Create a variable called items_to_buy starting at 0, then increment it by 1 for each ingredient in your shopping_list.
  • Print both the shopping_list and the total number of items_to_buy.