Skip to content

Correct two typos in exercise text (functions, python_by_example) - #638

Open
mmcky wants to merge 1 commit into
mainfrom
fix-exercise-typos
Open

mmcky wants to merge 1 commit into
mainfrom
fix-exercise-typos

Conversation

@mmcky

@mmcky mmcky commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Two small wording typos inside exercise blocks:

Lecture Before After
functions.md (Exercise 5) Rewrite the function factorial() in from [Exercise 1] using recursion. Rewrite the function factorial() from [Exercise 1] using recursion.
python_by_example.md (Exercise 2 hint) For the legend, noted that suppose var = 42, … For the legend, note that if var = 42, …

Copilot spotted both on QuantEcon/lecture-python-programming.ml#14. That edition keeps exercise blocks byte-for-byte identical to this repo, so the typos can only be corrected at the source.

On merge: the translation sync will open a small PR in each of the zh-cn, fa and fr editions for these two lectures. The ml edition is not on the sync, so it will be brought into line separately.

🤖 Generated with Claude Code

- functions.md: "Rewrite the function `factorial()` in from [Exercise 1]"
  -> "... `factorial()` from [Exercise 1]"
- python_by_example.md hint: "noted that suppose `var = 42`"
  -> "note that if `var = 42`"

Spotted by Copilot on QuantEcon/lecture-python-programming.ml#14, which
copies exercise blocks byte-for-byte from this repo, so the typos can
only be corrected here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The changes are limited to verified typo fixes in exercise text and do not affect MyST structure or code behavior.

Review effort: Lite
Findings: None

What changed in this PR

This PR fixes two minor wording typos inside MyST exercise/hint blocks in the lecture notes, improving clarity without changing any executable code or exercise structure.

Changes:

  • Fixes grammar in functions.md Exercise 5 (“in from” → “from”).
  • Fixes wording in python_by_example.md Exercise 2 hint (“noted that suppose” → “note that if”).
File Description
lectures/​functions.md Corrects a typo in Exercise 5 instructions for the recursive factorial() rewrite.
lectures/​python_by_example.md Corrects a typo in Exercise 2 hint text about f-strings used in a plot legend.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants