October 5: While Loops

Learning Objectives

After today's class, you should be able to:

  • Understand the structure of while loops and the role of the while boolean expression
  • Use the random module to generate random numbers
  • Critic when to use while and when to use for loops

Lesson Outline

Quiz 3A: 25 minutes

  • Log in as student on the lab machine
  • Open web browser, go to canvas and log in with your eid
  • In canvas, go to Modules, Quiz3A
  • Do part one of the Module
  • The programming portion is given on sheet of paper
  • Open Thonny
  • Submit work using Canvas with Gradesope, Module Quiz3A, Programming

Mini Lecture: Chapter Introduction and activities

Inclass Activity

Your To-Do List

By today

Complete by Monday October 9th

Due Wednesday October 11th at 11pm