Removing item by value
Previously, we removed items from the inventory by index, but it’s also possible to remove items from the inventory by value.
The inventory can contain objects like cat, dog, monkey, chicken, parrot, etc. So, if you want to remove dog from the inventory, you can simply write ninja.inventory.remove("dog").
フィードバックありがとうございます!
ninja.py
index.html
preset.py
Removing item by value
メニューを表示するにはスワイプしてください
Previously, we removed items from the inventory by index, but it’s also possible to remove items from the inventory by value.
The inventory can contain objects like cat, dog, monkey, chicken, parrot, etc. So, if you want to remove dog from the inventory, you can simply write ninja.inventory.remove("dog").
スワイプしてコーディングを開始
解答
フィードバックありがとうございます!
ninja.py
index.html
preset.py
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください