CSC 221 Weekly Assignments: Week 7

CSC 221


Overview

This week will study Chapter 6: Dictionaries, sets, files and modules, our last chapter that has material needed for the PCEP certification.

Thursday, October 15th

Classwork / Homework

We'll start class by giving back the chapter 5 quiz. Results suggest a need for study on the part of many of us. The grade distribution was: A: 3, B: 1, C: 4, D: 2, E: 7. I'm going to encourage those of you scoring high on this quiz to consider taking the PCEP early. We'll talk more about this in class today. I will also go over this quiz in detail, so I can hopefully help us be ready to do better on the next one.

Next we have a discussion of Chapter 6: Dictionaries, set, files and modules.

You'll have the rest of class time and your homework time to begin working the exercises in Chapter 6 Exercise Set 0: Chapter Review and Chapter 6 Exercise Set 1

Tuesday, October 13th

Classwork

We will begin today with the promised quiz on Chapter 5: Functions.

We will then have a brief discussion of exception handling in Python.

I found an article on GeeksforGeeks titled Python Exception Handling that will suit our purposes perfectly.

I will then introduce a new Python data type, the dictionary . I'll walk you through a little program that counts the frequency of words in Alice in Wonderland.

Homework

Read Chapter 6: Dictionaries, set, files and modules. Read for understanding, trying out the examples and convincing yourself you know how they work. Come to class Thursday ready to discuss the chapter.