Skip to content

Added video solutions for all exercises #6

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions exercises/03-What-is-a-function/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
tutorial: "https://www.youtube.com/watch?v=tgTLyZ0cKj4"
---

# `03` What is a function?

You can see a function as a **fragment of code** we can use several times.
Expand Down
4 changes: 4 additions & 0 deletions exercises/04-Call-a-function/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
tutorial: "https://www.youtube.com/watch?v=NU5iW_bWwmY"
---

# `04` Calling a function

A function could receive 0 parameters, and you can it always returns something, event if you don't explicitly add the `return` statement.
Expand Down
4 changes: 4 additions & 0 deletions exercises/05-Defining-vs-Calling-a-function/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
tutorial: "https://www.youtube.com/watch?v=fz4ttmwZWuc"
---

# `05` Defining vs Calling a function

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.
Expand Down
7 changes: 6 additions & 1 deletion exercises/06-lambda-functions/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
tutorial: "https://www.youtube.com/watch?v=HACQ9uerCuE"
---


# `06` Lambda functions in Python

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


4 changes: 4 additions & 0 deletions exercises/07-lambda-function-two/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
tutorial: "https://www.youtube.com/watch?v=1HwmTkQPeMo"
---

# `07` Lambda functions

Take aim and note
Expand Down
6 changes: 5 additions & 1 deletion exercises/08-Function-that-returns/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
tutorial: "https://www.youtube.com/watch?v=-tqNmngh1PE"
---

# `08` Functions that return


Expand All @@ -16,4 +20,4 @@ Using the two functions available, print on the console the value of 137 dollars
Working backwards:
- Our expected value is in yen.
- Our available function euro_to_yen will provide that
- To get to euro we will use the available function dollar_to_euro.
- To get to euro we will use the available function dollar_to_euro.
4 changes: 4 additions & 0 deletions exercises/09-Function-parameters/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
tutorial: "https://www.youtube.com/watch?v=uaiDxW4LJNA"
---

# `09` Function parameters

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.
Expand Down
8 changes: 7 additions & 1 deletion exercises/10-Array-Methods/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
tutorial: "https://www.youtube.com/watch?v=jBXve_vh7dU"
---


# `10` List Methods

# 📝 Instructions:
Write a function called sort_names that, given a list of names, returns them in alphabetical order.

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

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

https://www.w3schools.com/python/ref_list_sort.asp
https://www.w3schools.com/python/ref_list_sort.asp