- Library
- Challenges
- Python
Merge two game inventories
Two players pool their loot. Merge two inventory dictionaries into a new one, add up shared items and cap each stack at 99.
Two players pool their loot. Merge two inventory dictionaries into a new one, add up shared items and cap each stack at 99.
Code editor. Press Control or Command plus Enter to run the code. Tab indents; to move focus out of the editor, press Escape and then Tab.