Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Removing item by index | 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 index

You can access the ninja's inventory by writing ninja.inventory, and operate on it using various methods.

For example, if you want to remove an item from your inventory, you can use the pop(index) method. This will delete and return the item at the specified index, or the last item if index is omitted.

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 4
py

ninja.py

toggle bottom row

book
Removing item by index

You can access the ninja's inventory by writing ninja.inventory, and operate on it using various methods.

For example, if you want to remove an item from your inventory, you can use the pop(index) method. This will delete and return the item at the specified index, or the last item if index is omitted.

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 4
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