Data Iteration · Part 4
enumerate for index/char; Caesar shifts; DNA complement and GC content; Hamming distance via zip.
Lesson 16 · Data Iteration · Part 4 — Level II · Guide
September 10, 2026 · Bridge Academy Python Program
Learning goals
- Walk a string with enumerate() to get both index and character. - Accumulate characters into a new string with classification rules. - Apply character-by-character transforms (Caesar shifts, case folding, DNA transcription). - Combine two iterables with zip() over parallel strings.
This lesson covers PCEP-30-02 objective 2.2.
Preview truncated — download the notebook to see the full lesson.