Course Solutions Uncategorized (Solved) : Code Must Python Write Second Function Called Getvalue Jsonlist Key Accepts Two Arguments Q32605243 . . . .

(Solved) : Code Must Python Write Second Function Called Getvalue Jsonlist Key Accepts Two Arguments Q32605243 . . . .

 

CODE MUST BE IN PYTHON) Write a second function calledgetvalue(jsonlist, key) that accepts two arguments: a 2D JSON listin the format returned by the function in Problem 1([ [“firstname”,“dave”], [“lastname”, “mckenney”], [“position”, “instructor”] ] ),and a string/key specifying the key you want to retrieve the valuefor. This function should iterate through the list to find thematching key and return the corresponding value. If no items withinthe given list match (i.e., the key does not exist), the functionshould return an empty string. As an example, if you saved the listinto a variable called mylist, the output of the getvalue functionwould be:

getvalue(mylist,

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post