Week 2 - Begins
Monday-Tuesday 
In the first teamwork of the week we'll tackle together one of the challenging finger exercises from the Guttag text. But before you do run through a little warmup and a short lecture/worksheet.
- Intro to the if-then-else statement in Python.
-
5-Minute Warmup: Write a program that gets a positive integer from the user and prints out if it is odd or even. (Compare your program with mine
Download mine
. This activity is not graded.)
-
Trivia: What does Python do for negative integers with the
%
operator? What about the//
operator? (Trivia questions are discussed and answered on Slack).
- Worksheet 3: Branching Flow Charts
-
Worksheet 4: Nested If
-
TW2: Odd Numbers. Do with your Blue Team sometime before midnight Wednesday. Schedule this on Zoom and be sure to invite me since I will occasionally drop in to teamwork sessions.
- ZB3: Branching. Individual work due at midnight Wednesday from your zyBook.