Skip to content

Commit 5ddba1d

Browse files
authored
Merge pull request 4GeeksAcademy#6 from tommygonzaleza/master
Issue 4GeeksAcademy#11 fixed
2 parents 11a8b7c + aafaa7b commit 5ddba1d

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

+10-3
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

+5-4
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)