Skip to content

Conversation

@jayew98
Copy link
Contributor

@jayew98 jayew98 commented Nov 3, 2025

Prompts the learner to use indexing for the rest of the examples - test is passable by calling as a string e.g. dna_sequence = "A"
which is what I did inadvertently.

Prompts the learner to use indexing for the rest of the examples - test is passable by calling as a string e.g. dna_sequence = "A"
 which is what I did inadvertently.
Example given before beginning of exercises to ensure student uses string indexing rather than just printing the value.
Copy link
Contributor Author

@jayew98 jayew98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example added before exercise to guide student to use index functions rather than quote the string directly. E.g. the test is passable by use "A" for the first test; the exercise wants to see "first_base = dna_sequence[0]".

This was changed from the last commit as it gave away an answer. https://github.com/jayew98/Pylings2/blob/7692934e3882824ae152e67338aa9da316b46167/pylings/exercises/01_variables/variables5.py#L16-L17

@CompEng0001 CompEng0001 self-assigned this Dec 16, 2025
@CompEng0001 CompEng0001 added documentation Improvements or additions to documentation good first issue Good for newcomers labels Dec 16, 2025
Copy link
Owner

@CompEng0001 CompEng0001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion will add and release.

@CompEng0001 CompEng0001 merged commit 05cf23a into CompEng0001:main Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants