diff --git a/exercises/practice/nth-prime/.approaches/tracking/content.md b/exercises/practice/nth-prime/.approaches/tracking/content.md index 7e6398c92f7..1614bfda5a7 100644 --- a/exercises/practice/nth-prime/.approaches/tracking/content.md +++ b/exercises/practice/nth-prime/.approaches/tracking/content.md @@ -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 \ No newline at end of file +[for-else]: https://book.pythontips.com/en/latest/for_-_else.html +~~~~ diff --git a/exercises/practice/yacht/.approaches/functions/content.md b/exercises/practice/yacht/.approaches/functions/content.md index 2c6bfe527df..b407b955e02 100644 --- a/exercises/practice/yacht/.approaches/functions/content.md +++ b/exercises/practice/yacht/.approaches/functions/content.md @@ -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.