Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Removing item by value | Lists
Ninja Python
course content

Conteúdo do Curso

Ninja Python

Ninja Python

1. Controles Básicos
2. Controles Avançados
3. Funções
4. Loops
5. Declarações If-Else
6. Desafios
7. Lists

book
Removing item by value

Previously, we removed items from the inventory by index, but it’s also possible to remove items from the inventory by value.

The inventory can contain objects like cat, dog, monkey, chicken, parrot, etc. So, if you want to remove dog from the inventory, you can simply write ninja.inventory.remove("dog").

Tarefa

Swipe to start coding

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 7. Capítulo 5
py

ninja.py

toggle bottom row

book
Removing item by value

Previously, we removed items from the inventory by index, but it’s also possible to remove items from the inventory by value.

The inventory can contain objects like cat, dog, monkey, chicken, parrot, etc. So, if you want to remove dog from the inventory, you can simply write ninja.inventory.remove("dog").

Tarefa

Swipe to start coding

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 7. Capítulo 5
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Sentimos muito que algo saiu errado. O que aconteceu?
some-alt