IT 117: Intermediate Scripting
Class 7

Today's Topics


New Material

Homework 4

I have posted homework 4 here.

It is due this coming Sunday at 11:59 PM.


Working with Lists

Adding Elements to a Dictionary

Lists versus Dictionaries

The in And not in Operators

Deleting Elements from A Dictionary

Getting the Number of Elements in a Dictionary

Sorting Dictionary Keys

New Material

A Function to Open Files

Keys Are Immutable

Values in a Dictionary

Using Dictionaries in Scripts

Dictionary Methods

The clear method

The get Method

The pop Method

The popitem Method

The items Method

The keys Method

The values Method

Real World Dictionary Example


Class Exercise 7