From c46918a5c0d458aaddadda3590173b2445ee0240 Mon Sep 17 00:00:00 2001 From: Yrahcaz7 <74512479+Yrahcaz7@users.noreply.github.com> Date: Thu, 4 Jun 2026 18:28:51 -0400 Subject: [PATCH] [Approach Docs Fixes] Yacht and Nth Prime Fixed the ref-link in `nth-prime/.approaches/tracking/content.md` and the level-one header in `yacht/.approaches/functions/content.md`. --- exercises/practice/nth-prime/.approaches/tracking/content.md | 5 ++--- exercises/practice/yacht/.approaches/functions/content.md | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) 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.