Please enable JavaScript to use CodeHS

Texas Computer Science I in Python

Looping

Students learn how to write more efficient code by using loops as shortcuts.

Lessons

6.1 While Loops

  • While Loops
  • While Loops
  • Guess My Number
  • Program Tracing
  • Program Tracing, Part 2
  • +2 more

6.2 For Loops

  • For Loops
  • For Loops
  • Print 10 Numbers
  • 1 Through 10, Part 2
  • Counting 10 to 100 by Tens
  • +6 more

6.3 Break and Continue

  • Break and Continue
  • Break and Continue
  • Break
  • Continue
  • Bike Frame Size
  • +3 more

6.4 Nested Control Structures

  • Nested Control Structures
  • Nested Control Structures
  • Double For Loop
  • Average Test Score, Part 2
  • For Loop + While Loop
  • +2 more

6.5 Else Clauses on Loops

  • Else Clauses on Loops
  • Else Clauses on Loops Examples
  • Else Clauses on Loops
  • Number Guesser with while-else
  • Prime Numbers with for-else
  • +1 more

6.6 Looping Quiz

  • Looping Unit Test

Courses that include this module