Skip to main content

Repetition Structures

Learning Goals

Preparation for class:

  • NEW! Read over this Git & GitHub material. We will have a major GitHub session in class.
  • Think Python: Read Chapter 3. This will give you a review of functions and it also introduces Repetition. You will not be responsible for stack diagrams on the midterm. Think Python is the only source I have found that covers Stack Diagrams. It is not necessary to do the exercises, but do them if you think it will be helpful for you.
  • Python Crash Course:
    • Read Chapter 4: Working with Lists (This is where the for loop is covered.) Read from the beginning of the chapter up to, and including, the range() function.
    • Read Chapter 7: User Input and While Loops, entire chapter. This will give you a review of input() function and introduce while loops.
  • Link to the repetition code samples in this site.
  • Look over the slide show below.

Session Outline

  • We will go over the slides and get familiar with coding different types of loops.
  • We will review the basics and basic functions.
  • We will start learning how to use Git and Git Hub on the command line.
  • We will have a practice quiz, on paper in the class. This will cover everything on the midterm including what we cover in this session, so there will be repetition questions and Git/GitHub questions. So, if you prepare well and do well on the practice quiz, it can count for you real midterm!!

Repetition Structures