Section 1. Chapitre 13
single
Task: Modifying Part of a Series
Glissez pour afficher le menu
Tâche
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
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 13
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion