Course Solutions Uncategorized (Solved) : Code Must Python Write Function Called Jsontolist String Accepts String Argument Json Form Q32604966 . . . .

(Solved) : Code Must Python Write Function Called Jsontolist String Accepts String Argument Json Form Q32604966 . . . .

 

(CODE MUST BE IN PYTHON) Write a function calledjsontolist(string) that accepts a string argument that will havethe JSON format specified above. You can assume any string yourfunction will be given has the proper format. This function mustuse string and list operations to extract each key/value pair andreturn them in a 2D list. For example, if the JSON string is:

{“firstname”:”dave”,”lastname”:”mckenney”,”position”:”instructor”}

The function should return a 2D list that looks like:

[ [“firstname”, “dave”], [“lastname”, “mckenney”], [“position”,“instructor”] ]

Each element in the returned list is a list with two elementscorresponding to a key and its matching value. Several JSON stringsand their corresponding lists are included

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