PythonSneks Field Guide

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

Module 4 - Ifs and Lists

Before the week begins

Major Topics

Materials

Due This Week:

Graded This Week

Student Difficulty

Module 4 - Staff Meeting

Lessons

Lesson 27- If Statements

Summary: IF statements allow your program to do different things dependent on boolean conditions. The body of the IF statement is either executed or not, which affects the flow of the program.

Learning Objectives:

Activities:

Misconceptions:

Lesson 28- Truthiness

Summary: Any expression can be used as a conditional expression. Succinctly, any zero or empty value is considered false, and non-zero/non-empty values are considered true.

Learning Objectives:

Activities:

Misconceptions:

Lesson 29- Nested Ifs

Summary: IF statements allow your program to do different things dependent on boolean conditions. The body of the IF statement is either executed or not, which affects the flow of the program.

Learning Objectives:

Activities:

Misconceptions:

Lesson 30- Lists

Summary: Lists are a complex type that hold multiple values at once.

Learning Objectives:

Activities:

Misconceptions: None listed so far

Lesson 31- List Operations

Summary: You can use several different operations on a list, and lists have methods so they can be manipulated.

Learning Objectives:

Activities:

Misconceptions: None listed so far