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
- Start Chapter 7 "orange" textbook activities
- Start Homework 7: HW 7
- notice you have been provided stubs to start each homework. Remember to update your name, etc.
Complete by Monday October 9th
- Complete the Chapter 7 "orange" textbook activities. You must do this through CANVAS to receive credit.
Due Wednesday October 11th at 11pm