imagine that vanquished dragon' loot is represented as list of strings like thisdragonloot ['gold coin''dagger''gold coin''gold coin''ruby'write function named addtoinventory(inventoryaddeditems)where the inventory parameter is dictionary representing the player' inventory (like in the previous projectand the addeditems parameter is list like dragonloot the addtoinventory(function should return dictionary that represents the updated inventory note that the addeditems list can contain multiples of the same item your code could look something like thisdef addtoinventory(inventoryaddeditems)your code goes here inv {'gold coin' 'rope' dragonloot ['gold coin''dagger''gold coin''gold coin''ruby'inv addtoinventory(invdragonlootdisplayinventory(invthe previous program (with your displayinventory(function from the previous projectwould output the followinginventory gold coin rope ruby dagger total number of items