Repository navigation
docs(conferences): add tuples to lecture 4 - #337
Merged
Merged
Conversation
The 2026 plan had no place for tuples, while lecture 4 already used `for i, nota in enumerate(...)` and lectures 5 and 6 lean on unpacking. New section 6 covers the tuple as an immutable sequence, unpacking, multiple return values and `a, b = b, a`, plus a summary bullet pair and a `minimo_y_maximo` exercise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Hotfix: lecture 4 is today (2026-10-07), so this skips the issue.
The 2026 plan had no place for tuples. Lecture 4 already used
for i, nota in enumerate(notas)without explaining it, lecture 5 usesenumerateagain, and lecture 6 (dictionaries) will need.items().Changes:
ValueErroron a count mismatch,enumerateexplained, the comma builds the tuple and(5,),return a, b, anda, b = b, a.enumerateparagraph in section 2.minimo_y_maximoin one pass, withoutmin/max). The old exercises 2 to 8 are now 3 to 9; the swap paragraph points at exercise 3 (invertir_en_el_lugar).plan.mdmentions tuples in the lecture 4 entry.The tuples section sits after the project on purpose: it uses
minandmax, which the project section introduces only after writingmaximoby hand.Verified:
scriptorium render notas.mdexits 0, the PDF went from 15 to 18 pages, and every new block's output in the PDF (theTypeError, theValueError,[(0, 4), (1, 5), (2, 3)],2 1) is what Python 3.14 printed. The sieve growth figure still renders.🤖 Generated with Claude Code