Skip to content
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
5 changes: 2 additions & 3 deletions exercises/practice/nth-prime/.approaches/tracking/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ if prime_count == number:
```
The else block is executed if the `for` loop completes normally - that is, without `break`ing.
Read more on [for/else][for-else]
~~~~

[for-else]: https://book.pythontips.com/en/latest/for_-_else.html
[for-else]: https://book.pythontips.com/en/latest/for_-_else.html
~~~~
3 changes: 2 additions & 1 deletion exercises/practice/yacht/.approaches/functions/content.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Approach: Using Lambdas with Functions
# Approach: Using Lambdas with Functions

Each bit of functionality for each category can be encoded in an anonymous function (otherwise known as a [`lambda` expression][lambda] or lambda form), and the constant name set to that function.

In `score`, we call the category (as it now points to a function) passing in `dice` as an argument.
Expand Down
Loading