Skip to content

fix(Languages/{es,en}/10_InsertionSort): fix Python example indentation - #932

Open
xuyua9 wants to merge 1 commit into
AmazingAng:mainfrom
xuyua9:codex/l10-python-indent-20260813
Open

xuyua9 wants to merge 1 commit into
AmazingAng:mainfrom
xuyua9:codex/l10-python-indent-20260813

Conversation

@xuyua9

@xuyua9 xuyua9 commented Aug 13, 2026

Copy link
Copy Markdown

What

Fix the Python insertion-sort examples in the English and Spanish Lesson 10 READMEs by aligning return arr with the surrounding tab-indented function body.

Why

The copied examples currently raise IndentationError: unindent does not match any outer indentation level because the final return line uses four spaces while the rest of the function uses tabs. This prevents learners from running the reference implementation.

Validation

  • Reproduced the IndentationError against both origin/main snippets.
  • Executed both corrected snippets with [1, 5, 3, 2] and got [1, 2, 3, 5].
  • git diff --check passed.

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.

1 participant