Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion exercises/00-Welcome/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
Durante este curso aprenderás los siguientes conceptos:

1. Cómo crear y llamar funciones.

2. Cómo crear y llamar variables.

3. Cómo concatenar strings.
4. Cómo usar bucles(loops) e declaraciones if.

4. Cómo usar bucles(loops) y declaraciones if.

5. Cómo combinar y usar todos estos conceptos de diferentes formas.

Por favor, haz clic en el botón `Next →` arriba a la derecha para dirigirte al primer ejercicio.
Expand Down
4 changes: 4 additions & 0 deletions exercises/00-Welcome/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ We are very excited to have you here !! 🎉 😂
During this course you will be learning the following concepts:

1. How to create and call functions.

2. How to create and call variables.

3. How to concatenate strings.

4. How to use loops and if statements.

5. How to combine and use all these concepts in different ways.

Please click on the `Next →` button on the top right to proceed to the first challenge.
Expand Down
6 changes: 4 additions & 2 deletions exercises/01-Console/README.es.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# `01` Consola

En Python, usamos **print** para hacer que el computador escriba cualquier cosa que queramos (el contenido de una variable, una string dado, etc.) en algo llamado "la consola".
En Python, usamos **print** para que el computador escriba cualquier cosa que queramos (el contenido de una variable, una string dado, etc.) en algo llamado "la consola".

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

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.

Este es un ejemplo de cómo usarla:

```py
print("Un texto en la consola")
```

## 📝 Instrucciones:

1. usa **print** para escribir "Hello World!" en la consola. Siéntete libre de intentar otras cosas también.
1. usa **print** para escribir `Hello World!` en la consola. Siéntete libre de intentar otras cosas también.
3 changes: 2 additions & 1 deletion exercises/01-Console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tutorial: "https://www.youtube.com/watch?v=2sV-2frucUs"
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".

Every language has a console, as it was the only way to interact with the users at the beginning (before Windows or MacOS arrived).

Today, printing in the console is used mostly as a monitoring and debugging tool, ideal to leave a trace of the content of variables during the program execution.

This is an example of how to use it:
Expand All @@ -16,4 +17,4 @@ print("How are you?")

## 📝 Instructions:

1. Use **print** to print "Hello World!" on the console. Feel free to try other things as well.
1. Use **print** to print `Hello World!` on the console. Feel free to try other things as well.
4 changes: 3 additions & 1 deletion exercises/02-Declare-Variables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ tutorial: "https://www.youtube.com/watch?v=dWWvZkaPwDw"
# `02` Declare Variables

Variables act as a box (container) that lets you store different types of data. This is how we set a variable:

```py
name = "Daniel"
```

## 📝 Instructions:

1. Declare a new variable with the string value "Yellow" and print the value to the console.
2. Then, print its value on the console using ```print(name)```

2. Then, print its value on the console using `print(name)`

## 💡 Hint:

Expand Down
6 changes: 4 additions & 2 deletions exercises/03-Print-Variables-In-The-Console/README.es.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# `03` Imprimir las variables en la consola
# `03` Imprime las variables en la consola

También puedes usar la función **print** para imprimir variables en la consola. Es una excelente forma de verificar su valor actual, así:

```py
my_super_variable = 'hello'
print(my_super_variable)
```

## 📝 Instrucciones:

1. Declara una nueva variable llamada **color** y asínale el valor "red".
1. Declara una nueva variable llamada `color` y asínale el valor `red`.

2. Luego, imprime su valor en la consola (puede que tengas que desplazarte en la consola para poder verlo)
3 changes: 2 additions & 1 deletion exercises/03-Print-Variables-In-The-Console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ print(my_super_variable)

## 📝 Instructions:

1. Declare a new variable called **color** and assign the value "red" to it.
1. Declare a new variable called `color` and assign the value `red` to it.

2. Then, print its value on the console (you may have to scroll up in the terminal to see it!)
6 changes: 4 additions & 2 deletions exercises/04-Multiply-Two-Values/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
Cualquier lenguaje de programación te permite realizar operaciones matemáticas básicas como multiplicación, división, etc.

Para multiplicar dos valores en Python, tienes que usar el operador estrella o asterisco de esta forma:

```py
resulting_value = 2 * 3
```
En este caso, hemos almacenado el resultado de la multiplicación en una variable llamada **resulting_value**.
En este caso, hemos almacenado el resultado de la multiplicación en una variable llamada `resulting_value`.

## 📝 Instrucciones:

1. Por favor, almacena el resultado de multiplicar 2345 por 7323 en una variable llamada **variables_are_cool**
1. Por favor, almacena el resultado de multiplicar 2345 por 7323 en una variable llamada `variables_are_cool`.

2. Ahora imprime el resultado en la consola.


Expand Down
6 changes: 4 additions & 2 deletions exercises/04-Multiply-Two-Values/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ tutorial: "https://www.youtube.com/watch?v=tATIrAWiLLU"
Any programming language lets you do basic Math operations like multiplication, division, etc.

To multiply 2 values in python, you have to use the asterisk operator like this:

```py
resulting_value = 2 * 3
```
In this case, we stored the result value of the multiplication into a variable called **resulting_value**.
In this case, we stored the result value of the multiplication into a variable called `resulting_value`.

## 📝 Instructions:

1. Please store the result of multiplying 2345 times 7323 in a variable called **variables_are_cool**
1. Please store the result of multiplying 2345 times 7323 in a variable called `variables_are_cool`.

2. Now print the result in the console.


Expand Down
8 changes: 4 additions & 4 deletions exercises/05-User-Inputed-Values/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Por ejemplo, justo ahora la aplicación está preguntando la edad del usuario, y

## 📝 Instrucciones:

1. Por favor, añade 10 años al valor de la variable **age**.
1. Por favor, añade 10 años al valor de la variable `age`.

- El contenido de la variable está siendo definido con lo que sea que el usuario coloque.
Recuerda que el contenido de la variable está siendo definido con lo que sea que el usuario coloque.

# 💡 Sugerencia
## 💡 Pista:

Puedes buscar "how to add number to a python variable"
+ Puedes buscar "how to add number to a python variable"
4 changes: 2 additions & 2 deletions exercises/05-User-Inputed-Values/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ For example, the application right now is prompting the user for its age, and th

1. Please add 10 years to the value of the age variable.

- The content of the variable its being previously filled with whatever the user inputs.
Remember that the content of the variable its being previously filled with whatever the user inputs.

# 💡Hint

You can google "how to add number to a python variable"
+ You can google "how to add number to a python variable".
11 changes: 6 additions & 5 deletions exercises/06-String-Concatenation/README.es.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# `06` Concatenación de cadenas de texto
# `06` Concatenando Strings

Una de las tareas comunes que tú tendrás que realizar con cualquier lenguaje incluye el unir o combinar cadenas de texto.
Este proceso se denomina concatencación.
La mejor forma de definirlo es cuando tienes dos *strings* separados – almacenados por el intérprete – y los unes de forma que sean uno solo.
Una de las tareas más comunes que tú tendrás que realizar con cualquier lenguaje incluye el unir o combinar strings.
A esto le llamamos **concatenar**.

La mejor forma de explicarlo es cuando tienes dos *strings* separados – almacenados por el intérprete – y tienes que unirlos de forma que sean uno solo.

```py
one = 'a'
Expand All @@ -13,7 +14,7 @@ print(one+two); # esto imprimirá 'ab' en la consola.

## 📝 Instrucciones:

1. Establece valores para my_var1 y my_var2 de forma que el código imprima 'Hello World' en la consola.
1. Establece valores para las variables `my_var1` y `my_var2` de forma que el código imprima `Hello World` en la consola.



4 changes: 3 additions & 1 deletion exercises/06-String-Concatenation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ tutorial: "https://www.youtube.com/watch?v=kS4qpQmHwCs"
# `06` String Concatenation

One common task you’ll need to accomplish with any language involves merging or combining strings.

This process is referred to as concatenation.

The best way to describe it is when you take two separate strings – stored by the interpreter – and
merge them so that they become one.

Expand All @@ -18,7 +20,7 @@ print(one+two); #this will print 'ab' on the console.

## 📝 Instructions:

1. Set the values for my_var1 and my_var2 so the code prints 'Hello World' in the console.
1. Set the values for `my_var1` and `my_var2` so the code prints `Hello World` in the console.



11 changes: 3 additions & 8 deletions exercises/07-Create-a-Basic-HTML/README.es.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
# `07` Crear un HTML básico

Continuemos utilizando la concatenación para generar un documento HTML básico...



Continuemos concatenando strings para generar un documento HTML básico...

## 📝 Instrucciones:

1. Crea una variable **html_document**

2. El código a la izquierda contiene 8 variables con diferentes valores de tipo *string*, por favor
usa las variables, concatenándolas entre ellas para establecer el valor de la variable **html_document**
como una nueva cadena de texto que tenga el contenido de un documento HTML típico (con las etiquetas HTML
2. El código a la izquierda contiene 8 variables con diferentes valores de tipo *string*. Por favor usa las variables, concatenándolas entre ellas para establecer el valor de la variable **html_document** como nuevo string que tenga el contenido de un documento HTML típico (con las etiquetas HTML
en el orden correcto).

3. Luego, imprime el valor de **html_document** en la consola.

El resultado debería verse así:
## Resultado esperado:

```sh

Expand Down
8 changes: 3 additions & 5 deletions exercises/07-Create-a-Basic-HTML/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ tutorial: "https://www.youtube.com/watch?v=j14V-eS8mRg"
Let's continue using string concatenation to generate HTML...




## 📝 Instructions:

1. Create a variable **html_document**

2. The code on the left contains 8 variables with different string values, please use
the variables concatenating them together to set the value of the variable **html_document**
2. The code on the left contains 8 variables with different string values, please use the variables concatenating them together to set the value of the variable **html_document**
a new string that has the content of a typical HTML document (with the HTML tags in the
right order).

3. Then, print the value of **html_document** on the console.

The output should look like this:
## Expected Result:


```sh

Expand Down
18 changes: 9 additions & 9 deletions exercises/08-Your-First-If/README.es.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# `08` Tu primer if...

La aplicación actual está preguntando cuánto dinero tiene el usuario. Una vez el usuario ingresa
la cantidad, necesitamos **print** una de las siguientes respuestas:
La aplicación actual está preguntando cuánto dinero tiene el usuario. Una vez el usuario ingresa la cantidad, debemos 'imprimir' usando **print** una de las siguientes respuestas:

## 📝 Instrucciones:

1. Si el usuario tiene más de $100, respondemos: "Give me your money!" (Dame tu dinero)

## 📝 Instrucciones:
2. Si el usuario tiene más de $50, respondemos: "Buy me some coffee you cheap!" (¡Comprame un café!).

3. Si el usuario tiene igual o menos de $50, respondemos: "You are a poor guy, go away!" (¡Eres pobre!)

1. Si el usuario tiene más de $100, respondemos: "Give me your money!"
2. Si el usuario tiene más de $50, respondemos: "Buy me some coffee you cheap!"
3. Si el usuario tiene igual o menos de $50, respondemos: "You are a poor guy, go away!"
## 💡 Pista:

## 💡 Sugerencia:
- Usa un condicional `if/else` para verificar el valor de la variable `total`.

- Usa un condicional if/else para verificar el valor de la variable "total".
- https://docs.python.org/3/tutorial/controlflow.html#if-statements
- Puedes leer más al respecto [aquí](https://docs.python.org/3/tutorial/controlflow.html#if-statements)
16 changes: 8 additions & 8 deletions exercises/08-Your-First-If/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ tutorial: "https://www.youtube.com/watch?v=x9wqa5WQZiM"

# `08` Your First if...

The current application is prompting asking how much money the user has. Once the user inputs
the amount, we need to **print** one of the following answers:
The current application is prompting asking how much money the user has. Once the user inputs the amount, we need to **print** one of the following answers:

## 📝 Instructions:

1. If the user has more than $100, we answer: "Give me your money!".

## 📝 Instructions:
2. If the user has more than $50, we answer: "Buy me some coffee you cheap!".

1. If the user has more than $100, we answer: "Give me your money!"
2. If the user has more than $50, we answer: "Buy me some coffee you cheap!"
3. If the user has less or equal than $50, we answer: "You are a poor guy, go away!"
3. If the user has less or equal than $50, we answer: "You are a poor guy, go away!".

## 💡 Hint:

- Use an If/else statement to check the value of the "total" variable.
- https://docs.python.org/3/tutorial/controlflow.html#if-statements
- Use an If/else statement to check the value of the `total` variable.

- Further informetion [here](https://docs.python.org/3/tutorial/controlflow.html#if-statements)
9 changes: 4 additions & 5 deletions exercises/08.1-How-Much-The-Wedding-Costs/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ Aquí tenemos una tabla de precios de una compañía de catering de bodas:

## 📝 Instrucciones:

1. Por favor, escribe un algoritmo que pregunte por el número de personas asistentes
a la boda y que imprima el precio correspondiente en la consola.
1. Por favor, escribe un algoritmo que pregunte por el número de invitados a la boda y que imprime el precio correspondiente en la consola.

Por ejemplo, si la persona dice 20 que personas van a la boda, deberá costar $4,000 dólares.
Por ejemplo, si la persona dice que `20` personas van a la boda, deberìa costar `$4,000` dólares.

## 💡 Sugerencia:
## 💡 Pista:

Usa if/else para dividir el código y definir el valor de la variable **price** de forma correcta.
+ Usa if/else para dividir el código y definir el valor de la variable `price` de forma correcta.
7 changes: 3 additions & 4 deletions exercises/08.1-How-Much-The-Wedding-Costs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ Here is a table of prices for a wedding catering company:

## 📝 Instructions:

1. Please write an algorithm that prompts the user for the number of people attending
their wedding and prints the corresponding price in the console.
1. Please write an algorithm that prompts the user for the number of people attending their wedding and prints the corresponding price in the console.

For example, if the user says that 20 people are attending to the wedding, it must cost $4,000 dollars.
For example, if the user says that `20` people are attending to the wedding, it must cost `$4,000` dollars.

## 💡 Hint:

Use if/else to divide your code and set the value of the price variable the right way.
+ Use if/else to divide your code and set the value of the `price` variable the right way.
7 changes: 4 additions & 3 deletions exercises/09-Random-Numbers/README.es.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# `09` Números aleatorios

Puedes usar la función **randint()** para obtener un número entero aleatorio. **randint()** es una funcion interna del módulo ```random``` en Python 3.
El módulo random da acceso a varias funciones útiles y una de ellas viene siendo generar números aleatorios, que es **randint()**.
Puedes usar la función `randint()`para obtener un número entero aleatorio. `randint()` es una funcion interna del módulo **random** en Python 3.

Actualmente el código está devolviendo números decimales aleatorios.
El módulo random da acceso a varias funciones útiles y una de ellas, la función `randint()`, genera números aleatorios.

## 📝 Instrucciones:

Actualmente el código está devolviendo números decimales aleatorios:

1. Ahora, por favor actualiza la función en el código para hacer que devuelva un número entero (no decimales) entre 1 y 10.


Expand Down
7 changes: 4 additions & 3 deletions exercises/09-Random-Numbers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ tutorial: "https://www.youtube.com/watch?v=uYqMOZ-jFag"

# `09` Random Numbers

You can use the **randint()** function to get a random integer number. **randint()** is an inbuilt function of the random module in Python3.
The random module gives access to various useful functions and one of them being able to generate random numbers, which is **randint()**.
You can use the `randint()` function to get a random integer number. `randint()` is an inbuilt function of the **random** module in Python3.

The code now is returning random decimal numbers.
The random module gives access to various useful functions and one of them, **randint()**, being able to generate random numbers.

## 📝 Instructions:

The code now is returning random decimal numbers:

1. Now, please update the function code to make it return an integer (no decimals) number between 1 and 10.


Expand Down
Loading