Task: Modifying Part of a Series
Swipe to start coding
At CafΓ© Pandasia, the manager wants to update the inventory for a specific group of coffee beans. Theyβve decided to increase the stock for the first 5 coffee beans (in the original order) by 30 units each, to prepare for an upcoming promotion.
- Reference the first 
5coffee beans from thecoffee_inventorySeries by slicing (either by numerical or custom indexing). - Increase their inventory by 
30units each. 
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 2.7
Task: Modifying Part of a Series
Swipe to show menu
Swipe to start coding
At CafΓ© Pandasia, the manager wants to update the inventory for a specific group of coffee beans. Theyβve decided to increase the stock for the first 5 coffee beans (in the original order) by 30 units each, to prepare for an upcoming promotion.
- Reference the first 
5coffee beans from thecoffee_inventorySeries by slicing (either by numerical or custom indexing). - Increase their inventory by 
30units each. 
Solution
Thanks for your feedback!
single