Skip to content

Commit aba1fda

Browse files
authored
Merge pull request #52 from josemoracard/jose2-00-welcome
exercises 01-hello-world to 04-Call-a-function
2 parents a2e3553 + bc85b65 commit aba1fda

File tree

15 files changed

+94
-87
lines changed

15 files changed

+94
-87
lines changed

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
1-
# Aprende Funciones en Python!
1+
# Welcome to Python Functions!
22

3-
¡¡Nos estusiasma mucho tenerte aquí!! 🎉 😂
3+
¡¡Nos entusiasma mucho tenerte aquí!! 🎉 😂
44

55
Presiona `Next →` en la esquina superior derecha cuando quieras empezar.
66

77
En este curso aprenderás los siguientes conceptos:
88

9-
1. Cómo crear y llamar **funciones.**
9+
1. Cómo crear y llamar funciones.
1010

11-
2. Construir tus primeras **funciones.**
11+
2. Construir tus primeras funciones.
1212

13-
3. Sentirte cómod@ usando **funciones Lambda** en Python.
13+
3. Practicar las funciones Lambda de Python.
1414

15-
4. Construir **funciones** con parámetros.
15+
4. Construir funciones con parámetros.
1616

17-
5. Ejemplos de la vida real con **funciones**
17+
5. Ejemplos de la vida real con funciones.
1818

1919
## Contributors
2020

2121
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2222

23-
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentation) :book:
24-
2. [Paolo (plucodev)](https://github.com/plucodev), contribución: (bug reports) :bug: (coder) :computer:, (traducción) :earth_americas:
25-
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribución: (bug reports) :bug:, (traducción) :earth_africa:
23+
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) 💻, (idea) 🤔, (build-tests) ⚠️, (pull-request-review) 🤓, (build-tutorial) ✅, (documentation) 📖
24+
2. [Paolo (plucodev)](https://github.com/plucodev), contribución: (bug reports) 🐛, (coder) 💻, (traducción) 🌎
25+
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribución: (bug reports) 🐛, (traducción) 🌎
2626

27-
This project follows the
28-
[all-contributors](https://github.com/kentcdodds/all-contributors)
29-
specification. Contributions of any kind are welcome!
27+
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome!

exercises/01-hello-world/README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,30 @@
22
intro: "https://www.youtube.com/watch?v=awa_yfGgy9s"
33
---
44

5-
# Learn Python Functions!
5+
# Welcome to Python Functions!
66

77
We are very excited to have you here !! 🎉 😂
88

9-
Click `next` on the top right of this instructions when you are ready to start.
9+
Click `Next →` on the top right of these instructions when you are ready to start.
1010

11-
During this course you will be learning the following concepts:
11+
During this course, you will be learning the following concepts:
1212

13-
1. Learning how to create and call **functions.***
13+
1. Learning how to create and call functions.
1414

15-
2. Building your first real **functions**
15+
2. Building your first real functions.
1616

17-
3. Get comfortable using Python **Lambda Functions**
17+
3. Get comfortable using Python Lambda Functions.
1818

19-
4. Construct **functions** with parameters.
19+
4. Construct functions with parameters.
2020

21-
5. Real life examples for **functions**
21+
5. Real life examples for functions.
2222

2323
## Contributors
2424

2525
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
2626

27-
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentation) :book:
28-
2. [Paolo (plucodev)](https://github.com/plucodev), contribution: (bug reports) :bug:, contribution: (coder), (translation) :earth_americas:
29-
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribution: (bug reports) :bug:, (translation) :earth_africa:
27+
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) 💻, (idea) 🤔, (build-tests) ⚠️, (pull-request-review) 🤓, (build-tutorial) ✅, (documentation) 📖
28+
2. [Paolo (plucodev)](https://github.com/plucodev), contribution: (bug reports) 🐛, (coder) 💻, (translation) 🌎
29+
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribution: (bug reports) 🐛, (translation) 🌎
3030

31-
This project follows the
32-
[all-contributors](https://github.com/kentcdodds/all-contributors)
33-
specification. Contributions of any kind are welcome!
31+
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome!

exercises/02-Hello-World/README.es.md

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

3-
En Python, usamos `print` para hacer que el computador escriba cualquier cosa que queramos (el contenido de una variable, un texto dado, etc.) 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, un string dado, etc.) en algo llamado "la consola".
44

5-
Cada idioma tiene **funciones** para integrarse con la consola, ya que al principio era la única forma de interactuar con los usuarios (antes de que llegara Windows o MacOS o Linux). Hoy en día, la impresión en la consola se utiliza (`print`) sobre todo como herramienta de monitoreo, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.
5+
Cada lenguaje tiene **funciones** para integrarse con la consola, ya que al principio era la única forma de interactuar con los usuarios (antes de que llegaran Windows, Linux o macOS).
66

7-
Este es un ejemplo de cómo usarlo
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.
8+
9+
Este es un ejemplo de cómo usarla:
810

911
```py
1012
print("How are you?")
@@ -16,5 +18,4 @@ print("How are you?")
1618

1719
## 💡 Pista:
1820

19-
+ :video_camera: Puedes ver este breve video (5 minutos) sobre la consola:
20-
https://www.youtube.com/watch?v=vROGBvX_MHQ
21+
+ 📹 Puedes ver este breve video (2 minutos) sobre la consola: https://www.youtube.com/watch?v=vROGBvX_MHQ

exercises/02-Hello-World/README.md

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

55
# `02` Hello World
66

7-
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`.
7+
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".
88

9-
Every language has **functions** to integrate with the console, as it was the only way to interact with the users at the beginning (before the Windows or Linux or MacOS arrived).
9+
Every language has **functions** to integrate with the console, as it was the only way to interact with the users at the beginning (before Windows, Linux or macOS arrived).
1010

11-
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.
11+
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.
1212

1313
This is an example of how to use it:
14+
1415
```py
1516
print("How are you?")
1617
```
1718

1819
## 📝 Instructions:
1920

20-
1. Use `print` to display `"Hello World"` on the console. Feel free to try other things as well.
21+
1. Use `print()` to display `"Hello World"` on the console. Feel free to try other things as well.
2122

2223
## 💡 Hint:
2324

24-
+ :video_camera: You can watch this 5 minutes video about the console:
25-
https://www.youtube.com/watch?v=vROGBvX_MHQ
25+
+ 📹 You can watch this 2 minute video about the console: https://www.youtube.com/watch?v=vROGBvX_MHQ

exercises/02-Hello-World/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# your code here
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")
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# `03` ¿Qué es una función (function)?
1+
# `03` What is a function?
22

3-
Puedes ver una función como un **fragmento de código** que puedes encapsular entre llaves para poder usarla varias veces.
3+
Puedes ver una función como un **fragmento de código** que puedes usar varias veces.
44

55
Por ejemplo, si queremos obtener la suma de dos números, podemos declarar una función llamada `sum` que devuelve la suma de `number1` y `number2`:
66

77
```python
88
def sum(number1,number2):
9-
return number1 + number2
9+
return number1 + number2
1010
```
1111

1212
Después de declarar la función, podemos usarla tantas veces como queramos, así:
@@ -15,10 +15,10 @@ Después de declarar la función, podemos usarla tantas veces como queramos, as
1515
total = sum(2,3)
1616
total2 = sum(5,10)
1717

18-
print(total) # imprime 5 en la consola
19-
print(total2) # imprime 15 en la consola
18+
print(total) # Imprime 5 en la consola
19+
print(total2) # Imprime 15 en la consola
2020
```
2121

22-
# 📝 Instrucciones
22+
## 📝 Instrucciones:
2323

24-
1. Calcula la suma entre **3445324** y **53454423** y asigna el resultado a una variable llamada `super_duper`
24+
1. Calcula la suma entre `3445324` y `53454423` y asigna el resultado a una variable llamada `super_duper`.

exercises/03-What-is-a-function/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ For example: If we want to get the sum of two numbers, we can declare a function
1010

1111
```python
1212
def sum(number1,number2):
13-
return number1 + number2
13+
return number1 + number2
1414
```
1515

16-
After the function is declared we can use it as many times as we want, like this:
16+
After the function is declared, we can use it as many times as we want, like this:
1717

1818
```python
1919
total = sum(2,3)
2020
total2 = sum(5,10)
2121

22-
print(total) # prints 5 on the console
23-
print(total2) # prints 15 on the console
22+
print(total) # Prints 5 on the console
23+
print(total2) # Prints 15 on the console
2424
```
2525

26-
# 📝 Instructions
26+
## 📝 Instructions:
2727

28-
1. Please calculate the sum between **3445324** and **53454423** and assign the result to a variable called `super_duper`
28+
1. Please calculate the sum between `3445324` and `53454423` and assign the result to a variable called `super_duper`.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
def sum(number1,number2):
22
return number1 + number2
33

4+
# Your code here
45
total = sum(2,3)
56
print(total)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def sum(number1,number2):
2+
return number1 + number2
3+
4+
# Your code here
5+
super_duper = sum(3445324,53454423)
6+
print(super_duper)

0 commit comments

Comments
 (0)