Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
9337c44
updated instructions in general
ElviraQDP Oct 13, 2021
eccf27c
Merge branch '4GeeksAcademy:master' into master
ElviraQDP Oct 22, 2021
50e9e2d
fixing layout til ex 12
ElviraQDP Oct 22, 2021
3496527
adding README.es.md file to ex 13.1 and 14
ElviraQDP Oct 25, 2021
b2b23bb
REviewing instructions
ElviraQDP Oct 25, 2021
6bef2ff
Update README.es.md
tommygonzaleza Nov 8, 2021
4707808
Update README.es.md
tommygonzaleza Nov 8, 2021
5871c67
Update README.es.md
tommygonzaleza Nov 8, 2021
5933678
Update README.es.md
tommygonzaleza Nov 8, 2021
cd83fae
Update README.es.md
tommygonzaleza Nov 8, 2021
bbd51b6
Update README.md
tommygonzaleza Nov 8, 2021
c11b8ef
Update README.es.md
tommygonzaleza Nov 8, 2021
1332884
Update README.es.md
tommygonzaleza Nov 8, 2021
dd5556f
Update README.md
tommygonzaleza Nov 8, 2021
2466b97
Update README.es.md
tommygonzaleza Nov 8, 2021
1fc2b7f
Update README.es.md
tommygonzaleza Nov 8, 2021
f1e0dff
Update README.md
tommygonzaleza Nov 8, 2021
32a1f38
Update README.es.md
tommygonzaleza Nov 8, 2021
96878fa
Update README.es.md
tommygonzaleza Nov 8, 2021
fef7405
Update README.md
tommygonzaleza Nov 8, 2021
e2fb8b8
Update README.es.md
tommygonzaleza Nov 8, 2021
0350465
Update README.md
tommygonzaleza Nov 8, 2021
b9cc365
Update README.es.md
tommygonzaleza Nov 8, 2021
d1a5575
Update README.md
tommygonzaleza Nov 8, 2021
07eea47
Update README.md
tommygonzaleza Nov 8, 2021
9652798
Update README.md
tommygonzaleza Nov 8, 2021
ea16686
Update README.es.md
tommygonzaleza Nov 8, 2021
07a483e
Update README.md
tommygonzaleza Nov 8, 2021
6438503
Update README.es.md
tommygonzaleza Nov 8, 2021
42ed805
Update README.md
tommygonzaleza Nov 8, 2021
13620f5
Update README.md
tommygonzaleza Nov 8, 2021
e60d3e2
Update README.es.md
tommygonzaleza Nov 8, 2021
aaceb36
Update README.md
tommygonzaleza Nov 15, 2021
b595ba4
Update README.es.md
tommygonzaleza Nov 15, 2021
d19ff11
Update README.md
tommygonzaleza Nov 15, 2021
704f158
Update README.es.md
tommygonzaleza Nov 15, 2021
6781fa4
Update README.md
tommygonzaleza Nov 15, 2021
c4502cb
Update README.es.md
tommygonzaleza Nov 15, 2021
a13d6dd
Update README.es.md
tommygonzaleza Nov 15, 2021
9d527ac
Update README.es.md
tommygonzaleza Nov 15, 2021
9b12399
Update README.md
tommygonzaleza Nov 15, 2021
dd9a6b4
Update README.es.md
tommygonzaleza Nov 15, 2021
4a52fdc
Update README.md
tommygonzaleza Nov 15, 2021
e547545
Update README.es.md
tommygonzaleza Nov 15, 2021
ab3040f
Update README.md
tommygonzaleza Nov 15, 2021
119ff06
Update README.md
tommygonzaleza Nov 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 13 additions & 16 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@
</table>

Mi nombre Alejandro Sanchez [@alesanchezr](https://twitter.com/alesanchezr). ¡¡Estamos muy entusiasmados por tenerte aquí!! 🎉 😂
Learning to code is hard, you need coaching! DM me on twitter if you have any question.

Esta es una selección completa de ejercicios autocorregidos e interactivos en Python para cualquier persona interesada en aprender Python!
Aprender a programar es dificil ¡necesitas coaching! Envíame un DM en twitter si tienes alguna pregunta.

Esta es una selección completa de ejercicios con tests e interactivos en Python para cualquier persona interesada en aprender Python!

<ol>
<li><a href="https://github.com/4GeeksAcademy/python-beginner-programming-exercises">Python para principiantes</a></li>
<li><a href="https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises">Practica el recorrido de listas y tuplas</a> ← Tú estás aquí ahora</li>
<li><a href="https://github.com/4GeeksAcademy/python-functions-programming-exercises">Practica de funciones</a></li>
<li><a href="https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises"> Itera listas y tuplas</a> ← Tú estás aquí ahora</li>
<li><a href="https://github.com/4GeeksAcademy/python-functions-programming-exercises">Practica funciones</a></li>
<li><a href="https://github.com/4GeeksAcademy/master-python-programming-exercises">Domina Python (intermedio)</a></li>
</ol>

Estos ejercicios están pensados para ser construidos en colaboración, ¡te necesitamos!
Estos ejercicios son colaborativos, ¡te necesitamos!
Si encuentras algún error o falta de ortografía, por favor contribuye y repórtalo.

<p align="center">
Expand All @@ -37,9 +38,9 @@ Si encuentras algún error o falta de ortografía, por favor contribuye y repór
[![Ábrelo en Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io#https://github.com/4GeeksAcademy/python-lists-loops-programming-exercises.git)


## O por instalación local (si prefieres no usar Gitpod)
## O instalálo localmente (si no quieres usar Gitpod)

## Instalación local
### Instalación local:

1. Instala learnpack, el administrador de paquetes para tutoriales de aprendizaje y el complemento del compilador html para learnpack, asegúrate de tener también node.js 12+:

Expand All @@ -55,18 +56,14 @@ $ learnpack download python-lists-loops-programming-exercises
$ cd python-lists-loops-programming-exercises
```

NNota: Una vez que termine de descargar, encontrarás la carpeta "exercises" que contiene todos los ejercicios.
**Nota:** Una vez que termine de descargar, encontrarás la carpeta "exercises" que contiene todos los ejercicios.

3. Start the tutorial/exercises by running the following command at the same level were your bc.json file is:
3. Comienza con los ejercicios ejecutando el siguiente en el mismo nivel que tu archivo learn.json:

```sh
$ $ pip3 install pytest==4.4.2 pytest-testdox mock
$ pip3 install pytest==4.4.2 pytest-testdox mock
$ learnpack start
```

3. Inicia el tutorial / ejercicios ejecutando el siguiente comando en el mismo nivel donde está su archivo bc.json:
```

## ¿Cómo están organizados los ejercicios?

Cada ejercicio es un pequeño proyecto en Python que contiene los siguientes archivos:
Expand All @@ -75,7 +72,7 @@ Cada ejercicio es un pequeño proyecto en Python que contiene los siguientes arc
2. **README.md:** contiene las instrucciones del ejercicio.
3. **test.py:** no tienes que abrir este archivo. Contiene los scripts de pruebas del ejercicio.

## Contribuyentes
## Colaboradores:

Nuestro agradecimiento para estas maravillosas personas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

Expand All @@ -85,4 +82,4 @@ Nuestro agradecimiento para estas maravillosas personas ([emoji key](https://git

Este proyecto sigue las especificaciones
[all-contributors](https://github.com/kentcdodds/all-contributors).
¡Todas las contribuciones son bienvenidas!
¡Todas las contribuciones son bienvenidas!
2 changes: 1 addition & 1 deletion exercises/00-welcome/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ En este curso aprenderás los siguientes conceptos:

- Qué es una tupla.

- Recorrer una lista usando "for".
- Recorrer una lista usando `for`.

- Mapeo de listas.

Expand Down
2 changes: 1 addition & 1 deletion exercises/00-welcome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ During this course you will be learning the following concepts:

- What is tuple.

- Looping a list using 'for'.
- Looping a list using `for`.

- Mapping lists.

Expand Down
6 changes: 3 additions & 3 deletions exercises/01.1-Access-and-Retrieve/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Cada lista tiene las siguientes partes:

Para acceder a un elemento particular dentro de la lista necesitas conocer su `index` (posición).

El índice(`index`) es un valor entero que representa la posición en la cuál está ubicado el elemento en la lista.
El índice (`index`) es un valor entero que representa la posición en la cuál está ubicado el elemento en la lista.

## :mag_right: Importante :
## :mag_right: Importante:

¡Cada lista empieza en cero `(0)`! Así que para obtener el primer elemento deberíamos usar `my_list[0]`

## 📝 Instrucciones
## 📝 Instrucciones:

1. Usando la función `print()`, imprime el **3er elemento** de la lista.

Expand Down
4 changes: 2 additions & 2 deletions exercises/01.1-Access-and-Retrieve/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tutorial: "https://www.youtube.com/watch?v=uUQ6FlkoZbQ"

# `01.1` Access and retrieve

# 📝Instructions from your teacher:
## 📝Instructions:

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

Expand Down Expand Up @@ -32,7 +32,7 @@ The `index` is an integer value that represents the position in which the elemen

Every list starts from zero (0)! So to get the `first item` we'd use `my_list[0]`

## 📝 Instructions
## 📝 Instructions:

1. Using the `print()` function, print the 3rd item from the list.

Expand Down
4 changes: 2 additions & 2 deletions exercises/01.3-Print-the-last-one/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ devuelve la `longitud` (`length of`) nombre_lista .

3. Imprime `the_last_one` en la consola.

## 💡 Sugerencia:
## 💡 Pista::

- 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.

- 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í.
+ 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 por el *final* de la lista, podemos usar valores negativos, empezando desde `my_list_name[-1]` (no hay un [-0]).

Expand Down
3 changes: 1 addition & 2 deletions exercises/01.4-Add-item-to-list/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

1. Añadir 10 enteros aleatorios a la lista `arr`.


## 💡 Pistas:
## 💡 Pista:

- Tienes que importar la función "random": `import random`.

Expand Down
4 changes: 2 additions & 2 deletions exercises/01.5-loop-seventeen/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ En Python, `range(x,y)` devuelve una secuencia de números empezando en x, incre

Por ejemplo:

```python
```py
for x in range(0,5):
print(x)
```
Expand All @@ -32,7 +32,7 @@ Podemos incorporar parámetros adicionales para especificar más detalle (ahora

1. Contar del 1 al 17 con un bucle e imprimir cada número en la consola.

## 💡 Pistas:
## 💡 Pista:

+ Así haces un bucle:

Expand Down
3 changes: 2 additions & 1 deletion exercises/02.1-Loop-from-the-top/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Este bucle es `iterando` la lista de principio a fin... incrementando uno a uno.
```

## 📝 Instrucciones
## 📝 Instrucciones:

1. Vamos a intentar iterar desde el fin hasta el principio.

La salida en la consola debería ser algo así:
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.1-Loop-from-the-top/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tutorial: "https://www.youtube.com/watch?v=tFCstq-Us3I"
This loop is `looping` the list from beginning to end... increasing one by one.
```

## 📝Instructions:
## 📝Instructions::

1. Lets try looping from the end to the beginning.

Expand Down
12 changes: 7 additions & 5 deletions exercises/02.3-loop-from-the-half-to-the-end/README.es.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@

# `02.3` Iterando desde la mitad hasta el final

Este ciclo no es iterándolo todo... porque las variables `initialValue`, `stopValue` e `increasingValue` son iguales a cero.
Este bucle no es iterándolo todo... porque las variables `initialValue`, `stopValue` e `increasingValue` son iguales a cero.

# 📝 Instrucciones:

1. Cambia el valor de esas variables para hacer que el bucle imprima solo la segunda mitad de la lista.

# 📝 Instrucciones
1. Cambia el valor de esas variables para hacer que el ciclo imprima solo la segunda mitad de la lista.
2. ¡No cambies nada más que el valor de esas tres variables!

El resultado debería ser algo como esto:
## Resultado esperado:

```py
23
Expand All @@ -17,4 +19,4 @@ El resultado debería ser algo como esto:
23
25
12
```
```
6 changes: 4 additions & 2 deletions exercises/02.3-loop-from-the-half-to-the-end/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ tutorial: "https://www.youtube.com/watch?v=SzX_AdVBRn4"

This loop is not looping at all... because the variables initialValue, stopValue and increasingValue are equal to zero.

# 📝Instructions
## 📝Instructions:

1. Change the value of those variables to make the loop print only the last half of the list.

2. Change nothing but the value of those 3 variables!

The result should be something like:
## Expected result:

```py
23
Expand Down
13 changes: 9 additions & 4 deletions exercises/02.4-One_last_looping/README.es.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# `02.4` Una última iteración

# 📝 Instrucciones:
1. Cambia el valor del segundo elemento a 'Steven'
2. Establece la última posición a 'Pepe'
## 📝 Instrucciones:

1. Cambia el valor del segundo elemento a `Steven`.

2. Establece la última posición a `Pepe`.

3. Define el valor del primer elemento al del 3er elemento concatenado con el valor del 5to elemento.

4. Invierte el ciclo (desde el final hasta el principio) de toda la lista e imprime todos los elementos.

## 💡 Pista:

- Recuerda que la posición inicial de la lista es 0.
## Resultado esperado:

El resultado debería ser algo como esto:
```py
Pepe
Bart
Expand Down
18 changes: 12 additions & 6 deletions exercises/02.4-One_last_looping/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ tutorial: "https://www.youtube.com/watch?v=ca1DZgLwy00"

# `02.4` One last looping

# 📝Instructions:
1. Change the second item value to 'Steven'
2. Set the last position to 'Pepe'
## 📝Instructions:

1. Change the second item value to `Steven`.

2. Set the last position to `Pepe`.

3. Set the first element to the value of the 3rd element concatenated to the value of the 5th element.

4. Reverse loop (from the end to the beginning) the whole list and print all the elements.

💡Hint:
- Remember that list start at position 0.
## 💡Hint:

- Remember that list start at position `0`.

## Expected result:

The result should be something like this:
```py
Pepe
Bart
Expand Down
17 changes: 10 additions & 7 deletions exercises/02.5-Finding_wally/README.es.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# `02.5` Encontrando a Wally

# 📝 Instrucciones:
## 📝 Instrucciones:

1. Encuentra a Wally :)

2. Imprime la(s) posición(es) de Wally en la consola.

## 📝 Sugerencia
USA UN `CICLO!!!` y un `IF (condicional)`
## 📝 Pista

+ Usa un bucle y un if (condicional)

## :gem: Elemento sorpresa:

Elemento sorprea:
¿Qué pasa si hay más de un Wally?

## Resultado esperado:

Salida esperada en la consola:
```js
```py
65
198
```
```
15 changes: 9 additions & 6 deletions exercises/02.5-Finding_wally/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ tutorial: "https://www.youtube.com/watch?v=zez4r9ApjSY"

# `02.5` Finding Wally

# 📝Instructions:
## 📝Instructions:

1. Find Wally :)

2. Print the position(s) of Wally in the console.

💡Hint:
- USE A `LOOP!!!` and an `IF (conditional)`
## 💡 Hint:

- Use a loop and an if (conditional)

## :gem: Easter Egg:

Easter Egg:
What if there is more than one Wally?

## Expected result:

The console output expected:
```js
```py
65
198
```
19 changes: 12 additions & 7 deletions exercises/03-flip_list/README.es.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# `03` Lista volteada

# 📝 Instrucciones:
1. Crea la variable new_list
2. Usando un ciclo, invierte la lista "arr".
3. Agrega el resultado del ciclo a la variable new_list.
4. Con la función print() imprime en la consola el resultado obtenido.
## 📝 Instrucciones:

1. Crea la variable `new_list`.

2. Usando un bucle, invierte la lista `arr`.

3. Agrega el resultado del bucle a la variable `new_list`.

4. Con la función `print()` imprime en la consola el resultado obtenido.

```py
list inicial: [45, 67, 87, 23, 5, 32, 60]
list final: [60, 32, 5 , 23, 87, 67, 45]
```


## 💡 Sugerencia:
- Deberías iterar la lista entera y meter los valores en la nueva lista a medida que avanzas.
## 💡 Pista:

- Deberías iterar la lista entera y meter los valores en la nueva lista a medida que avanzas.
Loading