From c4adf2f24f45ab550c050683e5a587db9da89d64 Mon Sep 17 00:00:00 2001 From: dnly15 Date: Sat, 26 Dec 2020 12:02:45 -0500 Subject: [PATCH] remove 'all' call from list object --- responses/10_create-python-file.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/responses/10_create-python-file.md b/responses/10_create-python-file.md index d229a42..9313a56 100644 --- a/responses/10_create-python-file.md +++ b/responses/10_create-python-file.md @@ -44,7 +44,7 @@ If Python is a new programming language to you, like always don't worry. You are # Make an HTTP GET request to the cat-fact API cat_url = "https://cat-fact.herokuapp.com/facts" r = requests.get(cat_url) - r_obj_list = r.json()["all"] + r_obj_list = r.json() # Create an empty list to store individual facts in # This will make it easy to select a random one later @@ -74,4 +74,4 @@ If Python is a new programming language to you, like always don't worry. You are --- -I'll respond when you push changes to this pull request. \ No newline at end of file +I'll respond when you push changes to this pull request.