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 b2b23bb

Browse files
REviewing instructions
1 parent 3496527 commit b2b23bb

File tree

21 files changed

+54
-74
lines changed

21 files changed

+54
-74
lines changed

‎exercises/12.1-more_mapping/README.es.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def values_list(number) {
1111
my_list = [1, 2, 3, 4]
1212
result = map(values_list, my_list) #retorna [2, 3, 4, 5]
1313
```
14-
1514
## 📝 Instrucciones:
1615

1716
1. Crear una función llamada `increment_by_one` que multiplicará cada número por 3.

‎exercises/12.1-more_mapping/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# `12.1` More mapping
22

3-
43
The list `map()` method calls a function for each value in a
54
list and then outputs a new list with the modified values.
65

‎exercises/12.2-Map_function_inside_variable/README.es.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ La función `prepender` almacenada en la variable devuelve lo que sea que se le
88

99
1. Por favor, mapea la lista de nombres usando la función `prepender` para crear una nueva lista que se parezca a esto:
1010

11+
## Resultado Esperado:
12+
1113
!["Map function"](https://storage.googleapis.com/replit/images/1525912878195_89876a082d32ee32bb7a1ab5834dbca0.pn)
1214

‎exercises/12.2-Map_function_inside_variable/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ The function stored in the variable `prepender` returns whatever is passed to it
99
1. Please map the names list using the `prepender` function
1010
to create a new list that looks like this:
1111

12+
## Expected Result:
13+
1214
!["Map function"](https://storage.googleapis.com/replit/images/1525912878195_89876a082d32ee32bb7a1ab5834dbca0.pn)
1315

‎exercises/12.3-Map_data_types/README.es.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Muchas veces las listas vienen con valores mixtos y necesitamos unificarlos dent
66

77
1. Actualiza la función `map()` para hacer que cree una nueva lista (`new_list`) que contenga el tipo de dato que corresponde a cada elemento de la lista original.
88

9+
## 💡 Pista:
10+
11+
+ Usa la función `type()` para obtener el tipo de dato.
12+
13+
+ Más sobre tipos de datos: https://www.w3schools.com/python/python_datatypes.asp
14+
915
## Resultado esperado:
1016

1117
El resultado en la consola debería parecerse a esto:
@@ -14,8 +20,3 @@ El resultado en la consola debería parecerse a esto:
1420
[<class 'str'>, <class 'str'>, <class 'str'>, <class 'str'>, <class 'str'>, <class 'str'>, <class 'int'>, <class 'int'>]
1521
```
1622

17-
## 💡 Pista:
18-
19-
+ Usa la función `type()` para obtener el tipo de dato.
20-
21-
+ Más sobre tipos de datos: https://www.w3schools.com/python/python_datatypes.asp

‎exercises/12.3-Map_data_types/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ Some times lists come with mixed values and you need to unify them into only one
66

77
1. Update the map function to make it create a `new list` that contains the data types of each corresponding item from the original list.
88

9+
## 💡 Hint:
10+
11+
+ Use the `type()` function to get the data type.
12+
13+
+ More about data type: https://www.w3schools.com/python/python_datatypes.asp
14+
915
## Expected result:
1016

1117
The result in the console should be something like:
1218

1319
```py
1420
[<class 'str'>, <class 'str'>, <class 'str'>, <class 'str'>, <class 'str'>, <class 'str'>, <class 'int'>, <class 'int'>]
1521
```
16-
17-
## 💡Hint:
18-
19-
+ Use the `type()` function to get the data type.
20-
21-
+ More about data type: https://www.w3schools.com/python/python_datatypes.asp

‎exercises/12.4-Map_list_of_objects/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The most common scenario for the mapping function is for simplifying given lists
44

55
The current algorithm creates a lists with only the names of the people and prints it on the console.
66

7-
## 📝Instructions:
7+
## 📝Instructions:
88

99
1. At this time the function is printing the names only.
1010

‎exercises/12.5-Yes_and_no/README.es.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66

77
2. Imprime la nueva lista en la consola.
88

9+
## 💡 Pista:
10+
11+
- Debes mapear la lista entera.
12+
13+
- Dentro de tu función de mapeo necesitas usar un condicional para verificar si el valor actual es `1` o `0`.
14+
15+
- Si el valor es 1 asignas el texto `'wiki'`.
16+
17+
- Si el valor es 0 asignas el texto `'woko'`.
18+
919
## Resultado esperado:
1020

1121
```py
@@ -14,12 +24,3 @@ Ejemplo de salida:
1424
[ 'woko', 'wiki', 'woko', 'woko', 'wiki', 'wiki', 'wiki', 'woko', 'woko', 'wiki', 'woko', 'wiki', 'wiki', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'wiki', 'woko', 'woko', 'woko', 'woko', 'wiki' ]
1525
```
1626

17-
## 💡 Pista:
18-
19-
- Debes mapear la lista entera
20-
21-
- Dentro de tu función de mapeo necesitas usar un condicional para verificar si el valor actual es `1` o `0`.
22-
23-
- Si el valor es 1 asignas el texto `'wiki'`
24-
25-
- Si el valor es 0 asignas el texto `'woko'`

‎exercises/12.5-Yes_and_no/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66

77
2. Print that list on the console.
88

9-
## Expected result:
10-
11-
```py
12-
Example output:
13-
14-
[ 'woko', 'wiki', 'woko', 'woko', 'wiki', 'wiki', 'wiki', 'woko', 'woko', 'wiki', 'woko', 'wiki', 'wiki', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'wiki', 'woko', 'woko', 'woko', 'woko', 'wiki' ]
15-
```
169
## 💡 Hint:
1710

1811
+ You need to map the entire list.
@@ -22,3 +15,9 @@ Example output:
2215
+ If the current value is 1 you print the string `'wiki'`.
2316

2417
+ If the current value is 0 you print the string `'woko'`.
18+
19+
## Expected result:
20+
21+
```py
22+
[ 'woko', 'wiki', 'woko', 'woko', 'wiki', 'wiki', 'wiki', 'woko', 'woko', 'wiki', 'woko', 'wiki', 'wiki', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'woko', 'wiki', 'woko', 'woko', 'woko', 'woko', 'wiki' ]
23+
```

‎exercises/12.6-Transformers/README.es.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
## Resultado esperado:
1212

1313
```py
14-
La salida esperada:
15-
1614
'Mario Montes', 'Joe Biden', 'Bill Clon', 'Hilary Mccafee', 'Bobby Mc birth']
1715
```

0 commit comments

Comments
(0)

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