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
Explore other courses in Catalog
Everything was clear?
Thanks for your feedback!
SectionΒ 7. ChapterΒ 6
ninja.py
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 2.94
Clearing the inventory
Swipe to show menu
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
Explore other courses in Catalog
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 2.94SectionΒ 7. ChapterΒ 6
ninja.py