From 39cbf7d7bf47b4f8608cbfe8172b5d685ed0be30 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 2 Nov 2026 11:39:43 +1100 Subject: [PATCH] Correct two typos in exercise text (functions, python_by_example) Carries the English corrections from QuantEcon/lecture-python-programming#638 into this edition, so its exercise blocks stay byte-identical to the source (the ruling on #12, applied in #14). Co-Authored-By: Claude Opus 5.5 --- lectures/functions.md | 2 +- lectures/python_by_example.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/functions.md b/lectures/functions.md index 757622e..36c3449 100644 --- a/lectures/functions.md +++ b/lectures/functions.md @@ -675,7 +675,7 @@ print([x(i) for i in range(10)]) :label: func_ex5 ``` -Rewrite the function `factorial()` in from [Exercise 1](factorial_exercise) using recursion. +Rewrite the function `factorial()` from [Exercise 1](factorial_exercise) using recursion. ```{exercise-end} ``` diff --git a/lectures/python_by_example.md b/lectures/python_by_example.md index b34ad0a..a986235 100644 --- a/lectures/python_by_example.md +++ b/lectures/python_by_example.md @@ -511,7 +511,7 @@ If you can, add a legend, to help distinguish between the three time series. :class: dropdown * If you call the `plot()` function multiple times before calling `show()`, all of the lines you produce will end up on the same figure. -* For the legend, noted that suppose `var = 42`, the expression `f'foo{var}'` evaluates to `'foo42'`. +* For the legend, note that if `var = 42`, the expression `f'foo{var}'` evaluates to `'foo42'`. ``` ```{exercise-end}