Skip to content

Commit 96a6078

Browse files
committed
Update README.md
1 parent de10bbf commit 96a6078

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

exercises/02-random-status/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Create a condition to print on the console the following messages depending on t
1111
| 404 | The URL you asked is not found |
1212
| 503 | Unavailable right now |
1313
| 200 | Everything went perfect |
14-
| 400 | Something is wrong on the request params |
14+
| 400 | Something is wrong on the request params |
15+
| anything else | anything |

exercises/08-blog-post-author/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Take a moment to understand the response body when doing a GET request to this e
55

66
👉🏼 [Here is a brief video explanation.](https://www.youtube.com/watch?v=fwfBYVrvSk0)
77

8+
![json explanation](https://github.com/4GeeksAcademy/python-http-requests-api-tutorial-exercises/blob/master/assets/traversion_json.png?raw=true)
9+
810
# 📝 Instructions
911

1012
Get the author name of the first post.

exercises/09-array-of-blog-titles/README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ Using the same endpoint from the previous exercise, create a function `get_title
77
## 💡Hint
88

99
1. Create the function `get_titles`.
10-
2. Loop.
11-
3. Add each post title to the new array.
12-
4. Return the array
10+
2. Declare a new empty array called `titles`.
11+
2. Loop each post from the list of posts.
12+
3. Get the title of each post.
13+
3. Add that title to the new array.
14+
4. Return the titles array
1315

16+
The console output should be something similar to this:
17+
18+
```python
19+
['title 1','title 2', 'title 3']
20+
```

exercises/09-array-of-blog-titles/app.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
def get_titles():
44
# your code here
5-
return None
5+
return None
6+
7+
8+
print(get_titles())

0 commit comments

Comments
 (0)