Skip to content

Commit 65c9042

Browse files
authored
Merge pull request 4GeeksAcademy#59 from ElviraQDP/master
changing from js to py, layout
2 parents d05f5a5 + cf1e838 commit 65c9042

File tree

21 files changed

+209
-107
lines changed

21 files changed

+209
-107
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Your code here, have fun:

exercises/00-welcome/README.es.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ tutorial: "https://www.youtube.com/watch?v=xMg9d0KsYAk"
77
En este curso aprenderás los siguientes conceptos:
88

99
- Qué es una lista.
10+
1011
- Qué es una tupla.
11-
- Recorrer una lista usando for.
12+
13+
- Recorrer una lista usando "for".
14+
1215
- Mapeo de listas.
16+
1317
- Filtrar una lista.
18+
1419
- Crear una matriz.
20+
1521
- Combinar dos listas.
22+
1623
- Cómo combiar y usar todos estos conceptos de diferentes maneras.
1724

1825
Por favor, presiona el botón de `Next →` de arriba a la derecha para ir al primer reto.

exercises/00-welcome/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ tutorial: "https://www.youtube.com/watch?v=xMg9d0KsYAk"
77
During this course you will be learning the following concepts:
88

99
- What is a list.
10+
1011
- What is tuple.
11-
- Looping a list using for.
12+
13+
- Looping a list using 'for'.
14+
1215
- Mapping lists.
16+
1317
- Filter a list.
18+
1419
- Creating Matrix.
20+
1521
- Merge lists.
22+
1623
- How to combine and use all these concepts in different ways.
1724

1825
Please click on the `Next →` button on the top right to proceed to the first challenge.

exercises/01-hello-world/README.es.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ En Python, usamos `print` para hacer que el computador escriba cualquier cosa qu
55
en algo llamado `la consola`.
66

77
Cada lenguaje tiene una consola, ya que al principio era la única forma de interactuar con los usuarios (antes de que llegaran Windows, Linux o MacOS).
8+
89
Hoy en día, la impresión en la consola se utiliza, sobre todo, como herramienta de monitorización y depuración, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.
910

1011
Este es un ejemplo de cómo usarla:
12+
1113
```py
1214
print("How are you?")
1315
```
1416

1517
## 📝 Instrucciones:
1618

17-
```md
18-
Usa la función `print()` para escribir "Hello World" en la consola.
19+
1. Usa la función `print()` para escribir "Hello World" en la consola.
1920

20-
```
21-
Siéntete libre de intentar otras cosas también.
21+
22+
## :bulb: Pista:
23+
24+
+ Siéntete libre de intentar otras cosas también.

exercises/01-hello-world/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ In Python, we use `print` to make the computer write anything we want (the conte
44
in something called `the console`.
55

66
Every language has a console, as it was the only way to interact with the users at the beginning
7-
(before the Windows or MacOS arrived). Today, printing in the console is used mostly as a
8-
monitoring tool, ideal to leave a trace of the content of variables during the program execution.
7+
(before the Windows or MacOS arrived).
8+
9+
Today, printing in the console is used mostly as a monitoring tool, ideal to leave a trace of the content of variables during the program execution.
910

1011
This is an example of how to use it:
12+
1113
```py
1214
print("How are you?")
1315
```
1416

15-
📝 Instructions:
17+
## 📝 Instructions:
1618

17-
```md
18-
Use the `print()` function to print `Hello World` on the console.
19-
```
20-
Feel free to try other things as well.
19+
1. Use the `print()` function to print `Hello World` on the console.
20+
21+
## :bulb: Hint:
22+
23+
+ Feel free to try other things as well.
2124

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
11
# `01.1` Acceso y obtención
22

3-
# 📝 Instrucciones de tu instructor:
3+
## 📝 Instrucciones:
44

5-
Las listas forman parte de cada lenguaje de programación. Ellas son la vía a tomar cuando quieres tener una "lista de elementos".
5+
Las **listas** forman parte de cada lenguaje de programación.
6+
7+
Así se hace cuando tienes una "lista de elementos".
68

79
Por ejemplo, podríamos tener una lista que almacena los días de la semana:
10+
811
```py
912
my_list = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']
1013
```
1114

1215
![¿Qué es una lista?](http://i.imgur.com/DbmSOHT.png)
1316

1417
Cada lista tiene las siguientes partes:
18+
1519
- `Items`: son los valores reales en cada posición de la lista.
20+
1621
- `Length`: es el tamaño de la lista, el número de elementos (items).
22+
1723
- `Index`: es la posición de un elemento.
1824

1925
Para acceder a un elemento particular dentro de la lista necesitas conocer su `index` (posición).
20-
El índice es un valor entero que representa la posición en la cuál está ubicado el elemento en la lista.
21-
Protip: ¡Cada lista empieza en cero (0)! Así que para obtener el primer elemento deberíamos usar `my_list[0]`
26+
27+
El índice(`index`) es un valor entero que representa la posición en la cuál está ubicado el elemento en la lista.
28+
29+
## :mag_right: Importante :
30+
31+
¡Cada lista empieza en cero `(0)`! Así que para obtener el primer elemento deberíamos usar `my_list[0]`
2232

2333
## 📝 Instrucciones
2434

25-
1. Using the print() function, print the 3rd item from the list.
26-
2. Change the value in the position where 'Thursday' is located to None.
27-
3. Print the particular position of the step two.
35+
1. Usando la función `print()`, imprime el **3er elemento** de la lista.
36+
37+
2. Cambia el valor de la posición en que se encuentra `Thursday` a `None`.
38+
39+
3. Imprime la posición en que se encuentra el elemento del paso 2.

exercises/01.1-Access-and-Retrieve/README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,36 @@ tutorial: "https://www.youtube.com/watch?v=uUQ6FlkoZbQ"
66

77
# 📝Instructions from your teacher:
88

9-
Lists are part of every programming language. They are the way to go when you want to have a "list of elements."
9+
**Lists** are part of every programming language. They are the way to go when you want to have a 'list of elements'.
1010

1111
For example, we could have a list that is storing the days of the week:
12-
```js
1312

14-
15-
16-
17-
18-
my_list = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday'];
13+
```py
14+
my_list = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']
1915
```
2016

2117
![What is a list?](http://i.imgur.com/DbmSOHT.png)
2218

2319
Every list has the following parts:
20+
2421
- `Items:` are the actual values inside on each position of the list.
22+
2523
- `Length:` is the size of the list, the number of items.
24+
2625
- `Index:` is the position of an element.
2726

28-
To access any particular item within the lista you need to know its index (position).
29-
The index is an integer value that represents the position in which the element is located.
30-
Protip: Every list starts from zero (0)! So to get the first item we'd use my_list[0]
27+
To access any particular item within the list you need to know its `index` (position).
28+
29+
The `index` is an integer value that represents the position in which the element is located.
30+
31+
## :mag_right: Important:
32+
33+
Every list starts from zero (0)! So to get the `first item` we'd use `my_list[0]`
3134

3235
## 📝 Instructions
3336

34-
1. Using the print() function, print the 3rd item from the list.
35-
2. Change the value in the position where 'Thursday' is located to None.
37+
1. Using the `print()` function, print the 3rd item from the list.
38+
39+
2. Change the value in the position where `Thursday'` is located to `None`.
40+
3641
3. Print the particular position of the step two.
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# `01.2` Obtener elementos
22

33
La única forma de acceder a un elemento particuar en una `list` (en python), es usando un índice.
4+
45
Un `index` es un número entero que representa la `posición` a la que quieres acceder en la lista.
56

67
Necesitas `envolver` el índice entre `corchetes` así:
7-
```js
8+
9+
```py
810
my_value = list[index]
911
```
1012

11-
## 📝 Instrucciones
12-
1. Imprime en la consola el 1er elemento de la lista
13-
2. Imprime en la consola el 4to elemento de la lista
13+
## 📝 Instrucciones:
14+
15+
1. Imprime en la consola el `1er elemento` de la lista.
16+
17+
2. Imprime en la consola el `4to elemento` de la lista.

exercises/01.2-Retrieve-items/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ tutorial: "https://www.youtube.com/watch?v=Yyo3cP3zyT4"
55
# `01.2` Retrieve items
66

77
The only way of accessing a particular element in an `list`(in python), is using an index.
8+
89
An `index` is an integer number that represents the `position` you want to access in the list.
910

1011
You need to `wrap` the index into `brackets` like this:
12+
1113
```py
1214
my_value = list[index]
13-
1415
```
1516

16-
## 📝 Instructions
17+
## 📝 Instructions:
18+
1719
1. Print on the console the 1st element of the list
20+
1821
2. Print on the console the 4th element of the list
Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
# `01.3` Imprimir el último
22

3-
Nunca sabrás cuántos `items` tiene my_stupid_list, porque está siendo generada `aleatoriamente` durante la ejecución!
3+
Nunca sabrás cuántos `items` tiene `my_stupid_list`, porque se genera aleatoriamente durante la ejecución!
44

55
Sabes que la propiedad:
6+
67
```py
7-
len(name_list) # funcion
8+
len(name_list) # función
89
```
910

10-
devuelve la `longitud de` (`length of`) nombre_lista .
11+
devuelve la `longitud` (`length of`) nombre_lista .
12+
13+
## 📝 Instrucciones:
14+
15+
1. Importa la función `random` al inicio del archivo/fichero.
16+
17+
2. Crea una variable llamada `the_last_one` y asígnale el último elemento de `my_stupid_list`.
1118

12-
## 📝 Instrucciones
13-
1. Importa la función `random` al inicio del archivo/fichero
14-
2. Crea una variable llamada the_last_one y asígnale el último elemento de my_stupid_list.
15-
3. Imprime the_last_one en la consola.
19+
3. Imprime `the_last_one` en la consola.
1620

1721
## 💡 Sugerencia:
18-
- Para usar la función random, debemos importarla. La forma más efectiva de hacerlo es `import random`, sin comillas, al principio del archivo. Para más información sobre la importación, consulta la documentación de Python: https://docs.python.org/3/reference/import.html?highlight=importing.
19-
- Recuerda que, en Python, podemos acceder al primer elemento de la lista usando my_list_name[0], al segundo con my_list_name[1] y así. Para acceder a elementos empezando en el *fin* de la lista, podemos usar valores negativos, empezando desde my_list_name[-1] (no hay un [-0]). Para más, consulta esto: https://docs.python.org/3/tutorial/introduction.html.
22+
23+
- Para usar la función random, debemos importarla. La forma más efectiva de hacerlo es `import random`, sin comillas, al principio del archivo.
24+
25+
+ Para más información sobre la importación, consulta la documentación de Python: https://docs.python.org/3/reference/import.html?highlight=importing.
26+
27+
- Recuerda que, en Python, podemos acceder al primer elemento de la lista usando `my_list_name[0]`, al segundo con `my_list_name[1]` y así.
28+
29+
+ Para acceder a elementos empezando por el *final* de la lista, podemos usar valores negativos, empezando desde `my_list_name[-1]` (no hay un [-0]).
30+
31+
+ Para más, consulta esto: https://docs.python.org/3/tutorial/introduction.html.

0 commit comments

Comments
 (0)