Skip to content

Instantly share code, notes, and snippets.

@Gwith
Created August 9, 2016 15:50
Show Gist options
  • Select an option

  • Save Gwith/67e3d3cfcf457cc62aee7733adf610f7 to your computer and use it in GitHub Desktop.

Select an option

Save Gwith/67e3d3cfcf457cc62aee7733adf610f7 to your computer and use it in GitHub Desktop.
inv = {'gold coin':42, 'rope':1}
dragonLoot = {'gold coin' : 3, 'dagger' : 1, 'ruby' : 1}
def add_to_inventory(inventory, added_items):
for item in (added_items):
#code goes here
print(inventory)
add_to_inventory(inv, dragonLoot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment