Clarify that Week 2 Python challenge is optional - #2766
Open
Yosolita1978 wants to merge 1 commit into
Open
Conversation
naomiquinones
requested changes
Aug 25, 2026
naomiquinones
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the updates. I noted a few other things that could be clarified.
Comment on lines
+34
to
+35
| Find Target Index appears twice, once as a `.js` file and once as a `.py` file. | ||
| It is the same challenge, not two different ones. |
Collaborator
There was a problem hiding this comment.
Lines 28-30 above already indicate that the python file is the same exercise in a different language, so these lines are redundant and can be removed.
Comment on lines
40
to
+49
| **The vital concept this week is searching and the `-1` "not found" pattern.** In | ||
| lots of languages, functions that look for something return the index when they | ||
| find it, and a special value like `-1` when they do not. Getting comfortable | ||
| checking for that `-1` will help you far beyond these exercises. | ||
|
|
||
| You will see this shape twice in a row, and that is worth noticing. Find Last | ||
| Index searches an array and Find Target Index searches a string, so the data is | ||
| different, but the answer has the same form: return where you found it, or return | ||
| `-1` when you did not. Searching is one idea you can apply to many kinds of data. | ||
|
|
Collaborator
There was a problem hiding this comment.
Should these paragraphs have a title to separate them from the "Duplicated Exercises" section that precede them? Or maybe they could be moved to the Motivation or Learning Objectives section.
| you are looking for a user in a list or a word in a message. These challenges give | ||
| you a friendly place to practice the exact skill, and solving them in two languages | ||
| builds the kind of understanding that sticks. | ||
| you a friendly place to practice that exact skill, and to get used to the `-1` |
Collaborator
There was a problem hiding this comment.
This might be the place to move the paragraphs that go into more detail about the -1 pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Follow-up to #2754. Updates the Week 2 Code Challenges README to make clear that
the JavaScript challenges are the required track for program participants and
that the Python version is optional. Applies the same feedback Naomi gave on the
Week 3 README (#2756), which pointed out that the curriculum also serves grads,
seeker-program participants, and independent learners.
🔂 Changes Made
removed the text encouraging learners to solve the challenge in both languages.
string_manipulation.pyunder an "Optional:" heading.genuine conceptual link rather than a duplicate, and moved it under the vital
concept.
⚙️ Related Issue
🍏 Type of Change
🎁 Acceptance Criteria
and the Python version is optional.
🧪 How to test or what to evaluate
code-challenges/Week_2/README.mdand preview the Markdown (VS Code:Cmd+Shift+V).🚀 Repo Notes (if applicable)
and the README now reflects that.
📸 Screenshots (if applicable)
N/A — Markdown documentation only.
✅ Checklist