Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
f0ac639
Update README.md
hexbreak Feb 7, 2021
c5f9a89
Update README.md
hexbreak Feb 8, 2021
c90e3d6
Update README.md
hexbreak Feb 8, 2021
d8f1327
Merge pull request #11 from hexbreak/patch-3
alesanchezr Feb 8, 2021
03d3cad
Merge pull request #10 from hexbreak/patch-2
alesanchezr Feb 8, 2021
e12fad0
Merge pull request #9 from hexbreak/patch-1
alesanchezr Feb 8, 2021
503453a
Update README.md
hexbreak Feb 8, 2021
59d2593
Merge pull request #12 from hexbreak/patch-4
alesanchezr Feb 8, 2021
c770ba6
badge uploaded
ElviraQDP Mar 13, 2021
38a2a4c
Update learn.json
tommygonzaleza Jul 23, 2021
f060763
Update .gitpod.yml
tommygonzaleza Jul 23, 2021
c9b5807
Update .gitpod.Dockerfile
tommygonzaleza Jul 23, 2021
aefa296
errores de tipeo
wotanCode Jul 24, 2021
7d69489
error de tipeo
wotanCode Jul 24, 2021
be715d3
Error en el código de ejemplo
wotanCode Jul 24, 2021
fcfd3c4
Se eliminan líneas innecesarias
wotanCode Jul 25, 2021
3a33a03
Update .gitpod.Dockerfile
tommygonzaleza Jul 30, 2021
2b9827e
Merge pull request #19 from tommygonzaleza/master
alesanchezr Aug 3, 2021
c17c72f
Merge pull request #14 from learnpack/master
alesanchezr Aug 3, 2021
d8a5d6a
Merge pull request #15 from wotanCode/patch-1
alesanchezr Aug 3, 2021
2ac38ff
Merge pull request #16 from wotanCode/patch-2
alesanchezr Aug 3, 2021
61a39ab
Merge pull request #18 from wotanCode/patch-4
alesanchezr Aug 3, 2021
5eac136
Merge pull request #17 from wotanCode/patch-3
alesanchezr Aug 3, 2021
35689ae
Update .gitpod.Dockerfile
alesanchezr Aug 5, 2021
bfcb529
Update learn.json
alesanchezr Aug 5, 2021
4411587
finish reviewing instructions
ElviraQDP Aug 11, 2021
344f259
Update tests.py
alesanchezr Oct 4, 2021
0bdffed
learnpack audit's action added to the repository
tommygonzaleza Oct 9, 2021
fd83574
Merge pull request #21 from tommygonzaleza/master
alesanchezr Oct 21, 2021
b83fcc6
Editor version updated
tommygonzaleza Oct 28, 2021
3b6aa7d
Learnpack clean fixed by updating learnpack
tommygonzaleza Oct 31, 2021
7977e3a
Merge pull request #22 from tommygonzaleza/editor-version
alesanchezr Nov 3, 2021
927ddd0
Update .gitpod.Dockerfile
tommygonzaleza Nov 3, 2021
f146094
Merge pull request #23 from tommygonzaleza/learnpack-version
alesanchezr Nov 15, 2021
05ef8e3
Update README.es.md
tommygonzaleza Dec 6, 2021
5c3914c
Update README.es.md
tommygonzaleza Dec 6, 2021
57ec31e
Update README.es.md
tommygonzaleza Dec 6, 2021
6f4e342
Update README.es.md
tommygonzaleza Dec 6, 2021
4aa1c77
Update README.md
tommygonzaleza Dec 6, 2021
74248b2
Merge pull request #20 from ElviraQDP/master
tommygonzaleza Dec 6, 2021
d443683
coding ide version changed to 1.0.72
tommygonzaleza Dec 23, 2021
d1c9fbd
Merge pull request #24 from tommygonzaleza/coding-ide-version
alesanchezr Jan 13, 2022
8c81706
https://github.com/learnpack/learnpack/issues/512
ElviraQDP Jan 14, 2022
dbea562
Update README.md
tommygonzaleza Jan 20, 2022
04dbe7e
learnpack clean
ElviraQDP Jan 21, 2022
97aafc1
Merge pull request #26 from ElviraQDP/ex6
tommygonzaleza Jan 24, 2022
652a4bb
Update learn.json
tommygonzaleza Jan 24, 2022
8df11c7
04-Call-a-function
kiddopro Feb 9, 2022
d7af871
Merge pull request #27 from kiddopro/04-Call-a-function
tommygonzaleza Feb 21, 2022
ae4b874
https://github.com/learnpack/learnpack/issues/811
ElviraQDP Mar 29, 2022
c4acb50
misspell
ElviraQDP Mar 29, 2022
3e0b05a
missing content
ElviraQDP Mar 29, 2022
1c2549e
badge added
ElviraQDP Mar 30, 2022
a54cb3d
badge
ElviraQDP Mar 30, 2022
1c077c5
badge uploaded
ElviraQDP Mar 30, 2022
fe87698
Merge pull request #28 from ElviraQDP/readme.es-
tommygonzaleza Mar 31, 2022
5b6f91a
the main README´s were changed
Lorenagubaira Apr 22, 2022
6fbb75b
Update README.md
alesanchezr Apr 25, 2022
223b1bb
Update README.es.md
alesanchezr Apr 25, 2022
023c617
Update README.es.md
alesanchezr Apr 25, 2022
e19bf0c
Update README.md
alesanchezr Apr 26, 2022
7463d4b
Merge branch 'master' into main.readme.python
tommygonzaleza May 2, 2022
69af042
Update README.es.md
tommygonzaleza May 2, 2022
bbc32dc
Update README.es.md
tommygonzaleza May 2, 2022
c914a7b
Merge pull request #29 from Lorenagubaira/main.readme.python
tommygonzaleza May 2, 2022
ac13344
changed ide version
Sadiel0 May 25, 2022
c943a6b
Merge pull request #30 from Sadiel0/ide-version
tommygonzaleza May 25, 2022
cf32917
@learnpack/learnpack
Sadiel0 May 27, 2022
71d13bb
Merge pull request #31 from Sadiel0/practice-functions
tommygonzaleza May 31, 2022
f9be189
changed yml file
Sadiel0 Jun 17, 2022
1eba37a
Merge pull request #32 from Sadiel0/python-functions
tommygonzaleza Jun 20, 2022
33169cb
added \s to test to pass when space is added
Sadiel0 Jun 30, 2022
55e51a2
fixed test so it would read print on any line
Sadiel0 Jun 30, 2022
e93d16f
Merge pull request #35 from Sadiel0/hello-word
tommygonzaleza Jun 30, 2022
5b3db32
regex changed to allow many spaces
Sadiel0 Jul 5, 2022
08156f8
Update tests.py
tommygonzaleza Jul 26, 2022
6b9ec76
Merge pull request #34 from Sadiel0/array-methods
tommygonzaleza Jul 26, 2022
63bac30
test
dsilva06 Jul 27, 2022
5ce2687
Test improved on exercise 05
tommygonzaleza Jul 29, 2022
afa6454
Merge pull request #36 from dsilva06/05-Defining-vs-Calling-a-function
tommygonzaleza Jul 29, 2022
e415cf6
Update README.md
Chadmichaelg Aug 18, 2022
5d58b1f
learnpack -v
dsilva06 Aug 19, 2022
4553793
Update .gitpod.Dockerfile
tommygonzaleza Aug 22, 2022
800e1dd
Merge pull request #38 from dsilva06/learnpack-version
tommygonzaleza Aug 22, 2022
ed26fb6
Update .gitpod.Dockerfile
tommygonzaleza Aug 23, 2022
3b849b1
“learnpack”
dsilva06 Aug 27, 2022
47e0606
Merge pull request #39 from dsilva06/learnpack-version
tommygonzaleza Aug 31, 2022
ebe1894
Update learn.json
kiddopro Oct 8, 2022
c6e3b0f
camelCase
kiddopro Oct 12, 2022
486b0a3
Merge pull request #40 from kiddopro/properties
tommygonzaleza Oct 24, 2022
abf5213
Update learn.json
kiddopro Nov 6, 2022
fbc63ce
added solution
UmiKami Feb 16, 2023
6554470
Merge pull request #42 from UmiKami/07-lambda-function-two
tommygonzaleza Feb 16, 2023
f6f360e
Update learn.json
tommygonzaleza Feb 17, 2023
161612a
Update README.md
alesanchezr Mar 13, 2023
982566c
Update README.es.md
alesanchezr Mar 13, 2023
d4d9605
Update README.es.md
alesanchezr Mar 13, 2023
4605639
the footnotes were added
Lorenagubaira Apr 4, 2023
d09a84c
added sol
UmiKami Apr 6, 2023
61a33d7
Merge pull request #41 from kiddopro/properties
alesanchezr Apr 7, 2023
5b00b30
Merge pull request #44 from UmiKami/09-Function-parameters
alesanchezr Apr 7, 2023
092059b
Merge pull request #37 from Chadmichaelg/patch-1
alesanchezr Apr 7, 2023
cbcffc8
Merge pull request #43 from Lorenagubaira/python-functions-programmin…
alesanchezr Apr 7, 2023
07512a0
codepaces reference
Lorenagubaira Apr 13, 2023
61a98b6
Update .gitpod.Dockerfile
alesanchezr Apr 15, 2023
f5f0a1d
Update .gitignore
alesanchezr Apr 15, 2023
455bfcb
Create devcontainer.json
alesanchezr Apr 15, 2023
22595b4
Merge branch '4GeeksAcademy:master' into python-functions-programming…
Lorenagubaira Apr 20, 2023
d53186f
the links were updated
Lorenagubaira Apr 20, 2023
ade2590
the settings.json file was updated
Lorenagubaira Apr 24, 2023
c3efbe0
Merge pull request #46 from Lorenagubaira/python-functions.set.json
alesanchezr Apr 28, 2023
c2adf7b
Merge pull request #45 from Lorenagubaira/python-functions-programmin…
alesanchezr May 1, 2023
c1680de
increased flexibility of test by adding blank space tolerance
UmiKami Aug 30, 2023
2621f89
added solution file
UmiKami Aug 30, 2023
46963a8
Merge pull request #50 from UmiKami/04-Call-a-function
alesanchezr Sep 7, 2023
fe80228
Update README.md
josemoracard Nov 22, 2023
b27c19a
Update README.es.md
josemoracard Nov 22, 2023
25aa0c7
Update README.es.md
josemoracard Nov 22, 2023
fed4e6f
Update README.md
josemoracard Nov 22, 2023
3938ca8
Update learn.json
josemoracard Nov 22, 2023
95937fe
Update README.md
josemoracard Nov 22, 2023
d4cd0b8
Update README.md
josemoracard Nov 22, 2023
86ba89b
Update README.es.md
josemoracard Nov 22, 2023
185c68c
Update README.md
josemoracard Nov 22, 2023
849627e
Update README.md
josemoracard Nov 22, 2023
c8d874b
Update README.es.md
josemoracard Nov 22, 2023
fc6cc2c
Update README.es.md
josemoracard Nov 22, 2023
bc3b370
Update app.py
josemoracard Nov 22, 2023
ea6a0e2
Create solution.hide.py
josemoracard Nov 22, 2023
d893571
Update solution.hide.py
josemoracard Nov 22, 2023
16d9038
Update README.md
josemoracard Nov 22, 2023
1a1fec3
Update README.md
josemoracard Nov 22, 2023
3d4a114
Update README.es.md
josemoracard Nov 22, 2023
1684f58
Create solution.hide.py
josemoracard Nov 22, 2023
6040cfd
Update app.py
josemoracard Nov 22, 2023
c0891c6
Update README.md
josemoracard Nov 22, 2023
c822158
Update README.md
josemoracard Nov 22, 2023
42fffee
Update README.md
josemoracard Nov 22, 2023
2da7f65
Update README.md
josemoracard Nov 22, 2023
772e9e5
Update README.es.md
josemoracard Nov 22, 2023
0b953a0
Update app.py
josemoracard Nov 22, 2023
9a62da1
Update solution.hide.py
josemoracard Nov 22, 2023
bc85b65
Update tests.py
josemoracard Nov 22, 2023
221f1d2
Update README.md
josemoracard Nov 22, 2023
ddff8b1
Update README.md
josemoracard Nov 22, 2023
1ab3115
Update README.md
josemoracard Nov 22, 2023
6310ba4
Update README.es.md
josemoracard Nov 22, 2023
7e81a0a
Update app.py
josemoracard Nov 22, 2023
473ab8f
Update solution.hide.py
josemoracard Nov 22, 2023
8bfb202
Update tests.py
josemoracard Nov 22, 2023
e20ebf2
Added intro video
tommygonzaleza Nov 28, 2023
b3fbd36
Update README.es.md
josemoracard Nov 29, 2023
a96cd35
Update README.es.md
josemoracard Nov 29, 2023
117bc32
Update README.md
josemoracard Nov 29, 2023
b8b422f
Update README.md
josemoracard Nov 29, 2023
e1d8fe2
Update README.es.md
josemoracard Nov 29, 2023
4ed8919
Update README.md
josemoracard Nov 29, 2023
d006197
Update app.py
josemoracard Nov 29, 2023
e158501
Update tests.py
josemoracard Nov 29, 2023
f7e459f
Update tests.py
josemoracard Nov 29, 2023
0d2ba13
Update tests.py
josemoracard Nov 29, 2023
0de3fbf
Create solution.hide.py
josemoracard Nov 29, 2023
7877337
Update README.md
josemoracard Nov 29, 2023
7c657c2
Update README.md
josemoracard Nov 29, 2023
7f5cc84
Update README.es.md
josemoracard Nov 29, 2023
a18d892
Update app.py
josemoracard Nov 29, 2023
0280a20
Update solution.hide.py
josemoracard Nov 29, 2023
daa03e4
Update tests.py
josemoracard Nov 29, 2023
44a898b
Update README.md
josemoracard Nov 29, 2023
930f773
Update README.md
josemoracard Nov 29, 2023
08490fe
Update README.es.md
josemoracard Nov 29, 2023
eaefd88
Update app.py
josemoracard Nov 29, 2023
50e2eec
Update test.py
josemoracard Nov 29, 2023
114310e
Create solution.hide.py
josemoracard Nov 29, 2023
989a756
Update README.md
josemoracard Nov 29, 2023
cecf0db
Update README.es.md
josemoracard Nov 29, 2023
71fe9b0
Update solution.hide.py
josemoracard Nov 29, 2023
af4d5fd
Update README.es.md
josemoracard Nov 29, 2023
91c9d46
Update README.md
josemoracard Nov 29, 2023
a5eafd9
Update README.md
josemoracard Nov 29, 2023
3f6d997
Update README.md
josemoracard Nov 29, 2023
8bfd0bc
Update README.es.md
josemoracard Nov 29, 2023
4b35a98
Update solution.hide.py
josemoracard Nov 29, 2023
3c02856
Update app.py
josemoracard Nov 29, 2023
a229f30
Update README.md
josemoracard Nov 29, 2023
355a13a
Update tests.py
josemoracard Nov 29, 2023
b681c43
Update README.md
josemoracard Nov 29, 2023
a438081
Update README.es.md
josemoracard Nov 29, 2023
a2e3553
Merge pull request #51 from josemoracard/jose1-README
alesanchezr Dec 6, 2023
aba1fda
Merge pull request #52 from josemoracard/jose2-00-welcome
alesanchezr Dec 6, 2023
73aeec4
Merge pull request #53 from josemoracard/jose3-05-defining-vs-calling…
alesanchezr Dec 6, 2023
3f857d4
Merge pull request #54 from tommygonzaleza/patch-2
alesanchezr Dec 6, 2023
b3d24db
Merge pull request #55 from josemoracard/jose4-06-lambda-functions
alesanchezr Dec 6, 2023
30ccbe7
Update README.md
josemoracard Dec 13, 2023
ff4cc7e
Update README.md
josemoracard Dec 13, 2023
63202b9
Update README.md
josemoracard Dec 13, 2023
cc216be
Update README.es.md
josemoracard Dec 13, 2023
de8d27b
Update README.es.md
josemoracard Dec 13, 2023
ed10076
Update README.md
josemoracard Dec 13, 2023
b73c98b
Update README.es.md
josemoracard Dec 13, 2023
bb9e11d
Update README.md
josemoracard Dec 13, 2023
9084eee
Update README.md
josemoracard Dec 13, 2023
fd801fd
Update README.md
josemoracard Dec 13, 2023
e2ac839
Update README.es.md
josemoracard Dec 13, 2023
f17dff4
cambio de numeros a todo para poner el 00-welcome
josemoracard Dec 20, 2023
3b87eca
Merge pull request #56 from josemoracard/jose1-README
alesanchezr Dec 30, 2023
704c159
Merge pull request #57 from josemoracard/jose5-folders
alesanchezr Dec 30, 2023
3f0fa1e
Update devcontainer.json
Charlytoc Feb 27, 2024
5419817
Update learn.json
Charlytoc Feb 27, 2024
dfaa8ef
ADding videos
Charlytoc Mar 13, 2024
2d76d0e
Merge pull request #59 from Charlytoc/master
alesanchezr Mar 13, 2024
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
Prev Previous commit
Next Next commit
finish reviewing instructions
  • Loading branch information
ElviraQDP committed Aug 11, 2021
commit 441158757b9fab9e88078496f21d3bce45cc101c
15 changes: 10 additions & 5 deletions exercises/01-hello-world/README.es.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Aprende Funciones en Python!

¡¡Nos estusiasma mucho tenerte aquí!! 🎉 😂

Presiona `Next` `Next →` de arriba a la derecha cuando quieras empezar.

En este curso aprenderás los siguientes conceptos:

1. Cómo crear y llamar Funciones.
2. Construir tus primeras funciones reales
3. Sentirte cómod@ usando Funciones Lambda en Python
4. Construir Funciones con parametros.
5. Ejemplos de la vida real con funciones
1. Cómo crear y llamar **funciones.**

2. Construir tus primeras **funciones.**

3. Sentirte cómod@ usando **funciones Lambda** en Python

4. Construir **funciones** con parámetros.

5. Ejemplos de la vida real con **funciones**

## Contributors

Expand Down
15 changes: 10 additions & 5 deletions exercises/01-hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@ intro: "https://www.youtube.com/watch?v=awa_yfGgy9s"
# Learn Python Functions!

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

Click `next` on the top right of this instructions when you are ready to start.

During this course you will be learning the following concepts:

1. Learning how to create and call Functions.
2. Building your first real functions
3. Get comfortable using Python Lambda Functions
4. Construct Functions with parameters.
5. Real life examples for functions
1. Learning how to create and call **functions.***

2. Building your first real **functions**

3. Get comfortable using Python **Lambda Functions**

4. Construct **functions** with parameters.

5. Real life examples for **functions**

## Contributors

Expand Down
15 changes: 8 additions & 7 deletions exercises/02-Hello-World/README.es.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# `02` Hola, Mundo
# `02` Hello World

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

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 sobre todo como herramienta de monitorización, ideal para dejar un rastro del contenido de las variables durante la ejecución del programa.
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.

Este es un ejemplo de cómo usarlo:
```js
Este es un ejemplo de cómo usarlo

```py
print("How are you?")
```

## 📝 Instrucciones:

Usa la función `print()` para escribir "Hello World" en la consola. Siéntete libre de intentar otras cosas también.
1. Usa la función `print()` para escribir `"Hello World"` en la consola. Siéntete libre de intentar otras cosas también.

## 💡 Ayuda:
## 💡 Pista:

Video de 5 minutos sobre la consola:
+ :video_camera: Puedes ver este breve video (5 minutos) sobre la consola:
https://www.youtube.com/watch?v=vROGBvX_MHQ
10 changes: 6 additions & 4 deletions exercises/02-Hello-World/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,20 @@ tutorial: "https://www.youtube.com/watch?v=voBO7a0KPtE"

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

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.

This is an example of how to use it:
```js
```py
print("How are you?")
```

## 📝 Instructions:

Use print to display "Hello World" on the console. Feel free to try other things as well.
1. Use `print` to display `"Hello World"` on the console. Feel free to try other things as well.

## 💡 Hint:

5 minutes video about the console:
+ :video_camera: You can watch this 5 minutes video about the console:
https://www.youtube.com/watch?v=vROGBvX_MHQ
8 changes: 4 additions & 4 deletions exercises/03-What-is-a-function/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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:
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`:

```python
def sum(number1,number2):
Expand All @@ -15,10 +15,10 @@ Después de declarar la función, podemos usarla tantas veces como queramos, as
total = sum(2,3)
total2 = sum(5,10)

print(total) # prints 5 on the terminal
print(total2) # prints 15 on the terminal
print(total) # imprime 5 en la consola
print(total2) # imprime 15 en la consola
```

# 📝 Instrucciones

Calcula la suma entre **3445324** y **53454423** y asigna el resultado a una variable llamada `super_duper`
1. Calcula la suma entre **3445324** y **53454423** y asigna el resultado a una variable llamada `super_duper`
8 changes: 4 additions & 4 deletions exercises/03-What-is-a-function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tutorial: "https://www.youtube.com/watch?v=tgTLyZ0cKj4"

You can see a function as a **fragment of code** we can use several times.

For example: If we want to get the sum of two numbers, we can declare a function called `sum` that returns the sum of number1 and number2:
For example: If we want to get the sum of two numbers, we can declare a function called `sum` that returns the sum of `number1` and `number2`:

```python
def sum(number1,number2):
Expand All @@ -19,10 +19,10 @@ After the function is declared we can use it as many times as we want, like this
total = sum(2,3)
total2 = sum(5,10)

print(total) # prints 5 on the terminal
print(total2) # prints 15 on the terminal
print(total) # prints 5 on the console
print(total2) # prints 15 on the console
```

# 📝 Instructions

Please calculate the sum between **3445324** and **53454423** and assign the result to a variable called `super_duper`
1. Please calculate the sum between **3445324** and **53454423** and assign the result to a variable called `super_duper`
20 changes: 12 additions & 8 deletions exercises/04-Call-a-function/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Una función podría recibir 0 parámetros y tú puedes devolver algo siempre, incluso si no añades explícitamente el `return`.

:point_up: [Presiona aquí para saber más sobre funciones](https://content.breatheco.de/lesson/working-with-functions-python)
:point_up: [Presiona aquí para saber más sobre funciones](https://content.breatheco.de/es/lesson/working-with-functions-python/)

Por ejemplo, una función que calcula el área de un cuadrado sería algo como esto:

Expand All @@ -18,25 +18,29 @@ length = 3
edge = 6
```

Necesitas hacer algo como esto:
Tendrías que hacer algo como esto:

```python
area = calculate_area(3,6)
# The value of area will be set to 18
# El valor del área es 18
```

# 📝 Instrucciones:
## 📝 Instrucciones:


1. Create a new variable named `square_area1`, `square_area2`, `square_area3` and call the function `calculate_area` three times one for each square in the picture, for example:

Crea una nueva variable llamada squareArea para cada nueva iteración de la función CalculateArea utilizando las dimensiones de la figura, por ejemplo, para la primera figura,
1. Crea nuevas variables llamadas `squareArea1`, `square_area2`, `square_area3` y llama a la función `CalculateArea` 3 veces, un por cada cuadrador en la foto, utilizando las dimensiones de la figura, por ejemplo:

```python
# For the first figure:
# para la primera figura:
square_area1 = calculate_area(4,4)
```

![img](http://i.imgur.com/VyoJRAL.png)

# 💡 Sugerencia:
## 💡 Pista:

- Llama 3 veces a la función `calculate_area`, una por cada cuadrado, pasando la longitud y el borde de cada cuadrado.

:tv: [Video de 9 min sobre funciones en Python](https://www.youtube.com/watch?v=NE97ylAnrz4)
+ :video_camera: [Video de 9 min sobre funciones en Python](https://www.youtube.com/watch?v=NE97ylAnrz4)
11 changes: 6 additions & 5 deletions exercises/04-Call-a-function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ edge = 6
```

You need to do something like this:

```python
area = calculate_area(3,6)
# The value of area will be set to 18
```

# 📝 Instructions:
## 📝 Instructions:

Create a new variables named square_area1, square_area2, square_area3 and call the function calculate_area three times one for each square in the picture, for example:
1. Create a new variables named `square_area1`, `square_area2`, `square_area3` and call the function `calculate_area` three times one for each square in the picture, for example:

```python
# For the first figure:
Expand All @@ -39,9 +40,9 @@ square_area1 = calculate_area(4,4)

![img](http://i.imgur.com/VyoJRAL.png)

# 💡 Hint:
## 💡 Hint:

Call the `calculate_area` function three times, one per each square, passing the length and edge of each square.
+ Call the `calculate_area` function three times, one per each square, passing the length and edge of each square.

:tv: [9 min video about functions in python](https://www.youtube.com/watch?v=NE97ylAnrz4)
+ :video_camera: [9 min video about functions in python](https://www.youtube.com/watch?v=NE97ylAnrz4)

36 changes: 23 additions & 13 deletions exercises/05-Defining-vs-Calling-a-function/README.es.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
# `05` Definir vs llamar a una función

Las funciones solo existirán si usted u otra persona las define ... es la única forma en que el compilador/intérprete de idiomas sabe que existen, por lo tanto, puede ejecutarlas cuando las llama.
Las funciones solo existen si u otra persona las define... es la única forma en que el compilador/intérprete de idiomas sabe que existen, por lo tanto, puede ejecutarlas cuando las llama.

Para definir una función necesitamos escribir esta fórmula básica de código:

```python
def myFunctionName(parameter, parameter2, ...parameterX):
# the function code here
# codigo de la función aquí
return something
```

La palabra `def` es una palabra reservada en Python, esto significa que solo se usa para definir una función.

**El nombre** de la función podría ser lo que quieras. Consejo: usa un nombre descriptivo (no intentes ahorrar palabras, usa tantas como necesites) de esta manera entenderás lo que hace la función -y lo que devuelve-.
Nombres de ejemplo: add_two_integers , calculate_taxes , get_random_number, etc.
**El nombre** de la función podría ser lo que quieras.

**Parámetros:** puedes definir tantos parámetros como desees, más aún, si los necesitas. La cantidad de parámetros dependerá de las operaciones realizadas dentro de la función. Ejemplo: si la función está agregando dos enteros (3 + 4), esto significa que la función necesitará dos parámetros (uno para cada entero).
*Consejo:* usa un nombre descriptivo (no intentes ahorrar palabras, usa tantas como necesites) de esta manera entenderás lo que hace la función -y lo que devuelve-.

**Ámbito:** Todo el código que contenga la función debe tener una sangría a la derecha, todo lo que esté en una sangría diferente no será considerado como parte de la función, esto se llama **ámbito**, y puede ser local (dentro de la función) y global (fuera de la función).
Nombres de ejemplo: `add_two_integers` (suma dos números enteros, `calculate_taxes` (calcular impuestos) , `get_random_number` (obtener número aleatorio), etc.

**El retorno**: no todas las funciones necesitan devolver algo, pero se recomienda que lo haga.
Consejo: devolviendo `None` es un buen valor por defecto para cuando, aún, no sabes si se necesita devolver algo.
**Parámetros:** puedes definir tantos parámetros como desees, más aún, si los necesitas.

La cantidad de parámetros dependerá de las operaciones realizadas dentro de la función.

Ejemplo: si la función está sumando dos enteros (3 + 4), esto significa que la función necesitará dos parámetros (uno para cada entero).

**Alcance:** Todo el código que contenga la función debe tener una sangría a la derecha, todo lo que esté en una sangría diferente no será considerado como parte de la función, a esto se llama **alcance**, y puede ser local (dentro de la función) y global (fuera de la función).

**El retorno**: no todas las funciones necesitan devolver algo, pero se recomienda que lo hagan.

*Consejo*: devolver `None` es un buen valor por defecto para cuando, aún, no sabes si tu función debe devolver algo.

Ejemplo de una función:

Expand All @@ -32,12 +40,14 @@ def concatenate_number_to_string(local_number, local_string):
```


# 📝 Instrucciones:
## 📝 Instrucciones:

1. Define una función llamada `multi`.

2. La función `multi` recibe dos números.

1. Define una función llamada "multi".
2. La función múltiple recibe dos números
3. Devuelve el resultado de la multiplicación entre ellos.

# 💡 Pista:
## 💡 Pista:

Recuerda agregar la línea de `return`. Cada función debe devolver algo. En este caso debería ser el resultado de la multiplicación.
+ Recuerda agregar la línea de `return`. Una función siempre debería devolver algo. En este caso debería ser el resultado de la multiplicación.
10 changes: 6 additions & 4 deletions exercises/05-Defining-vs-Calling-a-function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ def concatenate_number_to_string(local_number, local_string):

# 📝 Instructions:

1. Define a function called "multi".
2. Multi function receive two numbers
1. Define a function called `multi`.

2. The `multi` function receives two numbers.

3. Return the result of the multiplication between them.

# 💡 Hint
## 💡 Hint

Remember to add the "return" line, every function must return something, in this case it should be the result of the multiplication.
+ Remember to add the `return` line. Every function should return something, in this case it should be the result of the multiplication.
34 changes: 20 additions & 14 deletions exercises/06-lambda-functions/README.es.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
# `06` Funciones Lambda en Python

Una función lambda es una función con solo una línea de código y sin nombre.
Es un tipo de función muy especial en el mundo Python porque puedes usarla como una pequeña utilidad para una programación muy ágil:
Una **función lambda** es una función con solo una línea de código y sin nombre.

Es un tipo de función muy especial en el mundo Python porque puedes usarla como una 'pequeña utilidad' para una programación muy ágil:

```python
# declaring a normal funcion for multiplication
# declarando una función normal para una multiplicación
def multiply(p1, p2):
return p1 * p2

# declaring it now like a one line lambda
# declarándola en una línea como una función lambda
multiply = lambda p1,p2: p1 * p2
```

1. Las funciones lambda tiene que ser siempre muy pequeñas
2. Las funciones lambda pueden tener únicamente una línea
3. Las funciones lambda no necesitan un `return`, se asume que lo que haya en esa línea devolverá un valor.
4. Las funciones lambda can be stored in variables or passed as parameters to another function
1. Las **funciones lambda** tiene que ser siempre muy pequeñas.

2. Las **funciones lambda** pueden tener únicamente una línea.

3. Las **funciones lambda** no necesitan un `return`, se asume que lo que haya en esa línea devolverá un valor.

4. Las **funciones lambda** pueden almacenarse en variables o ser pasadas como parámetro a otra función.


## 📝 Instrucciones:

# 📝 Instrucciones:
1. Crea una variable llamada `is_odd`.

1. Crea una variable llamada `is_odd`
2. Asígnale una función lambda que devuelva True o False dependiendo de si un número dado es impar o no
2. Asígnale una función lambda que devuelva `True` o `False` dependiendo de si un número dado es impar o no.

## 💡 Ayuda:
## 💡 Pista:

Así es como declararías una función normal
+ Así es como declararías una función normal:

```python
# this function return True if a number is odd.
# Esta función retorna `True` si el número es impar
def is_odd(num):
return (num % 2) != 0
```
Loading