Task: Processing the Restock of Inventory
Tarefa
Swipe to start coding
The team at Café Pandasia has completed a fresh restock of coffee beans! You’ve been given two Series:
previous_inventory
: The original stock before the deliveryrestocked
: The number of units added during the restock
You’ve been asked to calculate the total updated inventory by adding the two Series together.
- Add the corresponding elements of
previous_inventory
andrestocked
Series to calculate the total current inventory. - Save the result in a new variable called
updated_inventory
.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 14
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Resumir este capítulo
Explicar o código em file
Explicar por que file não resolve a tarefa
Awesome!
Completion rate improved to 2.7
Task: Processing the Restock of Inventory
Deslize para mostrar o menu
Tarefa
Swipe to start coding
The team at Café Pandasia has completed a fresh restock of coffee beans! You’ve been given two Series:
previous_inventory
: The original stock before the deliveryrestocked
: The number of units added during the restock
You’ve been asked to calculate the total updated inventory by adding the two Series together.
- Add the corresponding elements of
previous_inventory
andrestocked
Series to calculate the total current inventory. - Save the result in a new variable called
updated_inventory
.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Awesome!
Completion rate improved to 2.7Seção 1. Capítulo 14
single