C2W1 Lab2 - improvement idea

Hi, i found it much easier to read the json responses using json.dumps with indent defined, so an easy improvement to the notebook would be to either substitute all print(response) with print(json.dumps(response, indent=4)), or to define a function def print_response(response_json,indent_amount=4):\nprint(json.dumps(response_json, indent=indent_amount))\n
and call that.
Otherwise, I am really enjoying the course so far

2 Likes