Skip to content

Commit 27e0fa7

Browse files
authored
[Approach Docs Fixes] Yacht and Nth Prime (#4236)
Fixed the ref-link in `nth-prime/.approaches/tracking/content.md` and the level-one header in `yacht/.approaches/functions/content.md`.
1 parent 4b17ffb commit 27e0fa7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

exercises/practice/nth-prime/.approaches/tracking/content.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ if prime_count == number:
5959
```
6060
The else block is executed if the `for` loop completes normally - that is, without `break`ing.
6161
Read more on [for/else][for-else]
62-
~~~~
63-
6462
65-
[for-else]: https://book.pythontips.com/en/latest/for_-_else.html
63+
[for-else]: https://book.pythontips.com/en/latest/for_-_else.html
64+
~~~~

exercises/practice/yacht/.approaches/functions/content.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## Approach: Using Lambdas with Functions
1+
# Approach: Using Lambdas with Functions
2+
23
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.
34

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

0 commit comments

Comments
 (0)