Seksjon 1. Kapittel 13
single
Task: Modifying Part of a Series
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 13
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår