Week 2
Week 2: Loops, Strings, and Lists
Combine loops with strings and lists so students can process repeated and sequence-based input.
Week 2: Loops, Strings, and Lists
Students trace loops, build accumulators, and solve problems with strings and lists.
Topics
forloops andwhileloopsrange()- counters and accumulators
- list indexing and iteration
- string cleanup and transformations
Required Problems
- Module Countdown
- Badge List
- Clean Project Title
- Count Vowels
- List Maximum
Lesson completion is automatic. Students complete the week when every required problem has an accepted submission.
Knowledge checks
Quizzes for this lesson
Passing required quizzes contributes to lesson completion.
Required practice
Problems for this lesson
Solve all required problems to complete the lesson.
Module Countdown
Before a demo, a mentor counts down from `n` to 1. Print each number on its own line.
Badge List
Each student has earned practice badges. Given badge counts, print the largest count.
Clean Project Title
For a project URL preview, convert a project title to lowercase letters.
Count Vowels
Count how many vowels appear in a line of text. Treat uppercase and lowercase vowels the same.
List Maximum
Find the largest integer in a list.