Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Clearing the inventory | Lists
Python Ninja
course content

Course Content

Python Ninja

Python Ninja

1. Basic Controls
2. Advanced Controls
3. Functions
4. Loops
5. If-Else Statements
6. Challenges
7. Lists

book
Clearing the inventory

The ninja's inventory is not endless, it is currently full, so he can't take any more animals with him. However, you can free up space in the inventory using the inventory.clear() method.

Task

Swipe to start coding

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 7. Chapter 6
py

ninja.py

toggle bottom row

book
Clearing the inventory

The ninja's inventory is not endless, it is currently full, so he can't take any more animals with him. However, you can free up space in the inventory using the inventory.clear() method.

Task

Swipe to start coding

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 7. Chapter 6
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt