Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 552b006

Browse files
authored
Merge pull request 4GeeksAcademy#6 from alesanchezr/master
Added video solutions for all exercises
2 parents 922854c + 3dc4ba0 commit 552b006

File tree

8 files changed

+38
-3
lines changed

8 files changed

+38
-3
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=tgTLyZ0cKj4"
3+
---
4+
15
# `03` What is a function?
26

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

exercises/04-Call-a-function/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=NU5iW_bWwmY"
3+
---
4+
15
# `04` Calling a function
26

37
A function could receive 0 parameters, and you can it always returns something, event if you don't explicitly add the `return` statement.

exercises/05-Defining-vs-Calling-a-function/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=fz4ttmwZWuc"
3+
---
4+
15
# `05` Defining vs Calling a function
26

37
Functions will only exists if you or somebody else defines them... is the only way the language compiler/interpreter knows they exist, therefore is able to run them when you call them.

exercises/06-lambda-functions/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=HACQ9uerCuE"
3+
---
4+
5+
16
# `06` Lambda functions in Python
27

38
A lambda function is a function with just one line of code and no name.
@@ -31,4 +36,4 @@ Here is how you would declare it like a normal function
3136
def is_odd(num):
3237
return (num % 2) == 0:
3338
```
34-
 
39+
 

exercises/07-lambda-function-two/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=1HwmTkQPeMo"
3+
---
4+
15
# `07` Lambda functions
26

37
Take aim and note

exercises/08-Function-that-returns/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=-tqNmngh1PE"
3+
---
4+
15
# `08` Functions that return
26

37

@@ -16,4 +20,4 @@ Using the two functions available, print on the console the value of 137 dollars
1620
Working backwards:
1721
- Our expected value is in yen.
1822
- Our available function euro_to_yen will provide that
19-
- To get to euro we will use the available function dollar_to_euro.
23+
- To get to euro we will use the available function dollar_to_euro.

exercises/09-Function-parameters/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=uaiDxW4LJNA"
3+
---
4+
15
# `09` Function parameters
26

37
You can specify as many parameters as you want in a function. As a developer you are going to find functions with even 6 or 7 parameters all the time. The names of the parameters don't matter, but you have to be as explicit as you can because these names will give clues to the other developers (or yourself in the future) about what is each parameter about.

exercises/10-Array-Methods/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
---
2+
tutorial: "https://www.youtube.com/watch?v=jBXve_vh7dU"
3+
---
4+
5+
16
# `10` List Methods
7+
28
# 📝 Instructions:
39
Write a function called sort_names that, given a list of names, returns them in alphabetical order.
410

@@ -7,4 +13,4 @@ Every array comes with default functions that allows sorting- use it inside your
713

814
Stuck on sorting? Read W3 Schools page on sorting lists:
915

10-
https://www.w3schools.com/python/ref_list_sort.asp
16+
https://www.w3schools.com/python/ref_list_sort.asp

0 commit comments

Comments
 (0)