- Notifications
You must be signed in to change notification settings - Fork250
exercises 01-hello-world to 04-Call-a-function#52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
23 commits Select commitHold shift + click to select a range
95937fe
Update README.md
josemoracardd4cd0b8
Update README.md
josemoracard86ba89b
Update README.es.md
josemoracard185c68c
Update README.md
josemoracard849627e
Update README.md
josemoracardc8d874b
Update README.es.md
josemoracardfc6cc2c
Update README.es.md
josemoracardbc3b370
Update app.py
josemoracardea6a0e2
Create solution.hide.py
josemoracardd893571
Update solution.hide.py
josemoracard16d9038
Update README.md
josemoracard1a1fec3
Update README.md
josemoracard3d4a114
Update README.es.md
josemoracard1684f58
Create solution.hide.py
josemoracard6040cfd
Update app.py
josemoracardc0891c6
Update README.md
josemoracardc822158
Update README.md
josemoracard42fffee
Update README.md
josemoracard2da7f65
Update README.md
josemoracard772e9e5
Update README.es.md
josemoracard0b953a0
Update app.py
josemoracard9a62da1
Update solution.hide.py
josemoracardbc85b65
Update tests.py
josemoracardFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
24 changes: 11 additions & 13 deletionsexercises/01-hello-world/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
#Welcome toPython Functions! | ||
¡¡Nosentusiasma mucho tenerte aquí!! 🎉 😂 | ||
Presiona `Next →` en la esquina superior derecha cuando quieras empezar. | ||
En este curso aprenderás los siguientes conceptos: | ||
1. Cómo crear y llamar funciones. | ||
2. Construir tus primeras funciones. | ||
3.Practicar lasfunciones Lambda de Python. | ||
4. Construir funciones con parámetros. | ||
5. Ejemplos de la vida real con funciones. | ||
## Contributors | ||
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | ||
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder)💻, (idea) 🤔, (build-tests)⚠️, (pull-request-review)🤓, (build-tutorial)✅, (documentation)📖 | ||
2. [Paolo (plucodev)](https://github.com/plucodev), contribución: (bug reports)🐛, (coder)💻, (traducción)🌎 | ||
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribución: (bug reports)🐛, (traducción)🌎 | ||
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome! |
26 changes: 12 additions & 14 deletionsexercises/01-hello-world/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletionsexercises/02-Hello-World/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletionsexercises/02-Hello-World/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionexercises/02-Hello-World/app.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
#Your code here |
3 changes: 3 additions & 0 deletionsexercises/02-Hello-World/solution.hide.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Your code here | ||
print("Hello World") |
14 changes: 7 additions & 7 deletionsexercises/03-What-is-a-function/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletionsexercises/03-What-is-a-function/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletionsexercises/03-What-is-a-function/app.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
def sum(number1,number2): | ||
return number1 + number2 | ||
# Your code here | ||
total = sum(2,3) | ||
print(total) |
6 changes: 6 additions & 0 deletionsexercises/03-What-is-a-function/solution.hide.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def sum(number1,number2): | ||
return number1 + number2 | ||
# Your code here | ||
super_duper = sum(3445324,53454423) | ||
print(super_duper) |
28 changes: 14 additions & 14 deletionsexercises/04-Call-a-function/README.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
--- | ||
tutorial: "https://www.youtube.com/watch?v=NU5iW_bWwmY" | ||
--- | ||
# `04`Calling aFunction | ||
Una función podría recibir 0 parámetros ydevolverá algo siempre, incluso si no añades explícitamente el `return`. | ||
👉 [Clic aquí para saber más sobre funciones](https://4geeks.com/es/lesson/working-with-functions-python-es). | ||
Por ejemplo, una función que calcula el área de un cuadrado sería algo como esto: | ||
```python | ||
def calculate_area(length,width): | ||
return length *width | ||
``` | ||
Si deseas usar esa función para calcular el área de un cuadrado con: | ||
```python | ||
length = 3 | ||
width = 6 | ||
``` | ||
Tendrías que hacer algo como esto: | ||
```python | ||
area = calculate_area(3,6) | ||
# El valorde 'area' sería 18 | ||
``` | ||
## 📝 Instrucciones: | ||
1. Crea nuevas variables llamadas `square_area1`, `square_area2`, `square_area3` y llama a la función `calculate_area` 3 veces,una por cada cuadrado en la foto, utilizando las dimensiones de la figura, por ejemplo: | ||
```python | ||
#Para la primera figura: | ||
square_area1 = calculate_area(4,4) | ||
``` | ||
 | ||
## 💡Pistas: | ||
- Llama 3 veces a la función `calculate_area`, una por cada cuadrado, pasando la longitud y elancho de cada cuadrado. | ||
+📹 [Video de 9 min sobre funciones en Python](https://www.youtube.com/watch?v=NE97ylAnrz4). |
20 changes: 10 additions & 10 deletionsexercises/04-Call-a-function/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletionsexercises/04-Call-a-function/app.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
def calculate_area(length, width): | ||
return length *width | ||
# Your codebelow this line |
8 changes: 4 additions & 4 deletionsexercises/04-Call-a-function/solution.hide.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
def calculate_area(length, width): | ||
return length *width | ||
# Your codebelow this line | ||
square_area1 = calculate_area(4,4) | ||
square_area2 = calculate_area(2,2) | ||
square_area3 = calculate_area(5,5) |
8 changes: 4 additions & 4 deletionsexercises/04-Call-a-function/tests.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.