PythonSneks Field Guide

An instructionally-designed, open-source introductory Python curriculum for university settings

Module 6 - More Looping

Quick summary description

Before the week begins

Major Topics

Materials

Due This Week:

Graded This Week

Student Difficulty

Module 6 - Staff Meeting

Lessons

Lesson 35- Lists and Strings

Summary: FOR Loops are not just useful for lists - they can also be used with Strings and other sequence types.

Learning Objectives:

Activities:

Misconceptions: None listed so far

Lesson 36- Lists and Indexes

Summary: Unlike other languages, Python is optimized to loop through values, not indexes. Indexes complicate the already complicated process of loops.

Learning Objectives:

Activities:

Misconceptions: None listed so far

Lesson 37- List Comprehensions

Summary: List comprehensions are a type of expression similar to a FOR loop, but are explicitly for creating new lists. They are very convenient shorthand for creating lists.

Learning Objectives:

Activities:

Misconceptions: None listed so far

Lesson 38- While Loops

Summary: The WHILE loop repeatedly performs a body of actions until its condition is no longer true. In this way, they are very similar to an IF statement that loops back on itself.

Learning Objectives:

Activities:

Misconceptions: None listed so far