JSON Key-Value Parser

Easy
#dicts #parsing

Input: `d` (dict). Return: List of `[key, value]` lists, simulating JSON parsing.

Example

Input: {'a': 1, 'b': 2}
Output: [['a', 1], ['b', 2]]
Need a hint?
  • Use .items() to get key-value pairs
Run your code to see output