Created
August 8, 2016 20:34
-
-
Save Gwith/7bb701ea2755054f866ee8264f9bfb71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def add_to_inventory(inventory, added_items): | |
| inventory['banana'] = 'phone' | |
| inventory[item] = inventory.get(item, 0) + 1 | |
| inv = {} | |
| dragonLoot = ['gold coin','dagger','gold coin','gold coin','ruby'] | |
| print(add_to_inventory(inv, dragonLoot)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment