Clearing the inventory
The knight'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.
Swipe to start coding
Solution
Thanks for your feedback!
knight.py
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
How do I use the inventory.clear() method?
What happens to the animals if I clear the inventory?
Can I remove only specific animals instead of clearing the whole inventory?
Awesome!
Completion rate improved to 2.94
Clearing the inventory
Swipe to show menu
The knight'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.
Swipe to start coding
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 2.94knight.py