IT 116: Introduction to Scripting
Class 17

Tips and Examples


Review


New Material


Microphone

Graded Quiz

You can connect to Gradescope to take weekly graded quiz today during the last 15 minutes of the class.

Once you start the quiz you have 15 minutes to finish it.

You can only take this quiz today.

There is not makeup for the weekly quiz because Gradescope does not permit it.

Readings

If you have the textbook you should read Chapter 6, Files and Exceptions, from Starting Out with Python.

Solution to Homework 6

I have posted a solution to homework 6 here.

Let's take a look.

Homework 8

I have posted homework 8 here.

It is due this Sunday at 11:59 PM.

Midterm Scores

If you believe I have scored one of your Midterm answers incorrectly you can request a rescore for that question on Gradescope.

If your score on the Final is significantly better than your score on the Midterm, I will replace your Midterm grade with that of the Final when calculating your grade for the course.

If you want to discuss how you can improve your grade in this course, come see me during Office Hours.

You do not have to make an appointment to see me during Office Hours, but you may have to wait your turn if I am helping another student.

I want students to pass this course, and will do what I reasonably can to make that happen.

Your Current Standing in This Course

If you want to know your grade as of this moment, send me an email.

In performing this calculation, I will assume that your score on the final exam will be the same as that of you Midterm score.

I can do this only for your grade as of the Midterm.

I can't do this for your grade later in the semester.

Final Exam

The final for this course will take place in this room on Tuesday, December 17th, from 3:00 PM - 6:00 PM.

You will also find this information at the top of the class web page.

Questions

Are there any questions before I begin?

Tips and Examples

Common Exam Mistake - Using Input in Functions

Never Assume Your Code Works

Review

Functions Returning Boolean Values

Storing Functions in Modules

Attendance

New Material

Files

Types of Files

Identifying a File

Storing Data on a Hard Disk

Files and the Kernel

Working with a File in Python

Objects

Accessing the Data in Files

Opening a File

Specifying the Location of a File

Writing Data to a File

Reading Data From a File

Ethics and Technology

The Spiderman Principle

Class Exercise

Class Quiz