Skip to content

Commit e10e543

Browse files
authored
Merge pull request 4GeeksAcademy#111 from josemoracard/jose2-00-welcome
exercises 00-welcome to 01.5-loop-seventeen
2 parents e23fdc9 + a3e14f2 commit e10e543

File tree

29 files changed

+159
-132
lines changed

29 files changed

+159
-132
lines changed

exercises/00-welcome/README.es.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# Bienvenid@ a las Listas de Python!
2-
3-
---
4-
tutorial: "https://www.youtube.com/watch?v=xMg9d0KsYAk"
5-
---
1+
# Welcome to Python Lists!
62

73
En este curso aprenderás los siguientes conceptos:
84

@@ -20,7 +16,7 @@ En este curso aprenderás los siguientes conceptos:
2016

2117
- Combinar dos listas.
2218

23-
- Cómo combiar y usar todos estos conceptos de diferentes maneras.
19+
- Cómo combinar y usar todos estos conceptos de diferentes maneras.
2420

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

exercises/00-welcome/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ tutorial: "https://www.youtube.com/watch?v=xMg9d0KsYAk"
44

55
# Welcome to Python Lists!
66

7-
During this course you will be learning the following concepts:
7+
During this course, you will be learning the following concepts:
88

99
- What is a list.
1010

11-
- What is tuple.
11+
- What is a tuple.
1212

1313
- Looping a list using `for`.
1414

1515
- Mapping lists.
1616

1717
- Filter a list.
1818

19-
- Creating Matrix.
19+
- Creating a matrix.
2020

2121
- Merge lists.
2222

2323
- How to combine and use all these concepts in different ways.
2424

25-
Please click on the `Next →` button on the top right to proceed to the first challenge.
25+
Please click on the `Next →` button on the top right to proceed to the first exercise.
2626

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# `01` Hello world
1+
# `01` Hello World
22

3-
En Python, usamos `print` para hacer que el computador escriba cualquier cosa que queramos
4-
(el contenido de una variable, una cadena de texto dada, etc.)
5-
en algo llamado `la consola`.
3+
En Python, usamos `print` para hacer que el computador escriba cualquier cosa que queramos (el contenido de una variable, una cadena de texto dada, etc.) en algo llamado "la consola".
64

7-
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).
5+
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).
86

9-
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.
7+
Hoy en día, la impresión en la consola se utiliza, sobre todo, como herramienta de monitoreo y depuración, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.
108

119
Este es un ejemplo de cómo usarla:
1210

@@ -16,7 +14,7 @@ print("How are you?")
1614

1715
## 📝 Instrucciones:
1816

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

2119
## 💡 Pista:
2220

exercises/01-hello-world/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# `01` Hello World
22

3-
In Python, we use `print` to make the computer write anything we want (the content of a variable, a given string, etc.)
4-
in something called `the console`.
3+
In Python, we use `print` to make the computer write anything we want (the content of a variable, a given string, etc.) in something called "the console".
54

6-
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).
5+
Every language has a console, as it was the only way to interact with the users at the beginning (before Windows, Linux or macOS arrived).
86

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.
7+
Today, printing in the console is mostly used as a monitoring and debugging tool, ideal for leaving a trace of the content of variables during the program's execution.
108

119
This is an example of how to use it:
1210

exercises/01-hello-world/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# On the next line, use Python's print function to say `Hello World` in the console (this exercise is case-sensitive!)
1+
# Your code here
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Your code here
2+
3+
print("Hello World")

exercises/01-hello-world/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import io, sys, os
22
import pytest
33

4-
@pytest.mark.it("Output 'Hello World' case sensitive")
4+
@pytest.mark.it("Output 'Hello World' on the console (case sensitive)")
55
def test_output(capsys, app):
66
app()
77
captured = capsys.readouterr()
88
assert "Hello World\n" == captured.out
99
# convert everything in the buffer to lower case, captured to lower case
1010

11-
@pytest.mark.it("Use print function")
11+
@pytest.mark.it("Use the print function")
1212
def test_print():
1313
f = open(os.path.dirname(os.path.abspath(__file__)) + '/app.py')
1414
content = f.read()
15-
assert content.find("print") > 0
15+
assert content.find("print") > 0
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,35 @@
11
# `01.1` Access and retrieve
22

3-
## 📝 Instrucciones:
4-
5-
Las **listas** forman parte de cada lenguaje de programación.
6-
7-
Así se hace cuando tienes una "lista de elementos".
3+
Las **listas** forman parte de cada lenguaje de programación. Es lo que se usa cuando quieres una "lista de elementos".
84

95
Por ejemplo, podríamos tener una lista que almacena los días de la semana:
106

117
```py
12-
my_list = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']
8+
my_list = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
139
```
1410

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

1713
Cada lista tiene las siguientes partes:
1814

19-
- `Items`: son los valores reales en cada posición de la lista.
15+
- `Items`: son los valores en cada posición de la lista.
2016

2117
- `Length`: es el tamaño de la lista, el número de elementos (items).
2218

2319
- `Index`: es la posición de un elemento.
2420

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

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

29-
### 🔎 Importante:
25+
## 🔎 Importante:
3026

31-
¡Cada lista empieza en cero `(0)`! Así que para obtener el primer elemento deberíamos usar `my_list[0]`
27+
Cada lista empieza en cero (0), así que para obtener el primer elemento deberíamos usar `my_list[0]`
3228

3329
## 📝 Instrucciones:
3430

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

37-
2. Cambia el valor de la posición en que se encuentra `Thursday` a `None`.
33+
2. Cambia el valor de la posición en que se encuentra `thursday` a `None`.
3834

3935
3. Imprime la posición en que se encuentra el elemento del paso 2.

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,36 @@ tutorial: "https://www.youtube.com/watch?v=uUQ6FlkoZbQ"
44

55
# `01.1` Access and retrieve
66

7-
## 📝Instructions:
8-
97
**Lists** are part of every programming language. They are the way to go when you want to have a 'list of elements'.
108

11-
For example, we could have a list that is storing the days of the week:
9+
For example, we could have a list that stores the days of the week:
1210

1311
```py
14-
my_list = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']
12+
my_list = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
1513
```
1614

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

1917
Every list has the following parts:
2018

21-
- `Items:` are the actual values inside on each position of the list.
19+
- `Items:` are the actual values inside each position of the list.
2220

2321
- `Length:` is the size of the list, the number of items.
2422

2523
- `Index:` is the position of an element.
2624

27-
To access any particular item within the list you need to know its `index` (position).
25+
To access any particular item within the list, you need to know its `index` (position).
2826

2927
The `index` is an integer value that represents the position in which the element is located.
3028

31-
### 🔎 Important:
29+
## 🔎 Important:
3230

33-
Every list starts from zero (0)! So to get the `first item` we'd use `my_list[0]`
31+
Every list starts from zero (0), so to get the first item we'd use `my_list[0]`.
3432

3533
## 📝 Instructions:
3634

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

39-
2. Change the value in the position where `Thursday'` is located to `None`.
37+
2. Change the value in the position where `thursday` is located to `None`.
4038

41-
3. Print the particular position of the step two.
39+
3. Print the particular position of step two.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
my_list = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
12

2-
my_list = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday']
3+
# 1. Print the 3rd item here
34

4-
# 1. print the item here
5+
# 2. Change the value of 'thursday' to None
56

6-
# 2. change the position were 'thursday' is to None
7-
8-
# 3. print that position now here
7+
# 3. Print that position now here

0 commit comments

Comments
 (0)