IT 117: Intermediate Scripting
Class 7

Today's Topics

Course Requirements

Tips and Examples


New Material

Homework 4

I have posted homework 4 here.

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

Course Requirements

Collecting and Testing Assignments

Notifying You About Missing Work

Late Work

Tips and Examples

Printing a Dictionary in Reverse Order


Working with Lists

Adding Entries 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

Expressions in a Boolean Context

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


Graded Quiz