セクション 7. 章 5
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").
タスク
スワイプしてコーディングを開始
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 7. 章 5
ninja.py
index.html
preset.py
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください