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

Contenido del Curso

Ninja de Python

Ninja de Python

1. Controles Básicos
2. Controles Avanzados
3. Funciones
4. Bucles
5. Sentencias If-Else
6. Desafíos
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.

Tarea

Swipe to start coding

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 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.

Tarea

Swipe to start coding

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 7. Capítulo 4
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Lamentamos que algo salió mal. ¿Qué pasó?
some-alt