Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aafaa7b

Browse files
Issue 4GeeksAcademy#11 fixed
1 parent 11a8b7c commit aafaa7b

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ Usando el mismo endpoint del ejercicio anterior, crea una función `get_titles`
77
## 💡Pista
88

99
1. Crea una función `get_titles`.
10-
2. realiza un bucle (Loop).
11-
3. Agregue cada título de publicación al nuevo arreglo.
12-
4. Retorna el arreglo
10+
2. Declara un array vacío llamado `titles`.
11+
3. Haz el request del API adentro de la función.
12+
4. realiza un bucle (Loop) que itere para cada publicación.
13+
5. Agregue cada título de publicación al nuevo arreglo.
14+
6. Retorna el arreglo.
1315

16+
La salida de la consola debería verse parecido a esto:
17+
18+
```python
19+
['title 1','title 2', 'title 3']
20+
```

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ Using the same endpoint from the previous exercise, create a function `get_title
88

99
1. Create the function `get_titles`.
1010
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
11+
3. Do the request to the endpoint inside of the function.
12+
4. Loop each post from the list of posts.
13+
5. Get the title of each post.
14+
6. Add that title to the new array.
15+
7. Return the titles array.
1516

1617
The console output should be something similar to this:
1718

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /