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.
Lösning
Tack för dina kommentarer!
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.7
Task: Modifying Part of a Series
Svep för att visa menyn
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.
Lösning
Tack för dina kommentarer!
single