Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Removing item by index | Lists
Python Ninja
course content

Зміст курсу

Python Ninja

Python Ninja

1. Основні Елементи Управління
2. Просунуті Елементи Керування
3. Функції
4. Цикли
5. Оператори If-Else
6. Виклики
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.

Завдання

Swipe to start coding

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 7. Розділ 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.

Завдання

Swipe to start coding

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 7. Розділ 4
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Ми дуже хвилюємося, що щось пішло не так. Що трапилося?
some-alt