Task: Modifying Part of a Series
Uppgift
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
5
coffee beans from thecoffee_inventory
Series by slicing (either by numerical or custom indexing). - Increase their inventory by
30
units each.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 13
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
Awesome!
Completion rate improved to 2.7
Task: Modifying Part of a Series
Svep för att visa menyn
Uppgift
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
5
coffee beans from thecoffee_inventory
Series by slicing (either by numerical or custom indexing). - Increase their inventory by
30
units each.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Awesome!
Completion rate improved to 2.7Avsnitt 1. Kapitel 13
single