0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
We can also change the item that exists at a given index. For example, we can change Leather
to Leather Armor
in the inventory
list in the following way:
inventory = ["Leather", "Iron Ore", "Healing Potion"]
inventory[0] = "Leather Armor"
# inventory: ['Leather Armor', 'Iron Ore', 'Healing Potion']
Fantasy Quest is trialing a new inventory system for their hardcore game mode. If a player has Iron Ore
or an Iron Bar
, it is always stored in the 2nd inventory slot (and they can only have one or the other).
Let's finish the smelt_ore
function:
Focus Editor
Alt+Shift+]
Next Tab
Alt+Shift+[
Become a member to Submit
Become a member to Run
Become a member to view solution