IT 117: Intermediate Scripting
Class 3

Tips and Examples

Python Review


Microphone

Login Failure

If you enter the wrong password 5 times when connecting to pe15 you will be temporarily blocked from logging in to this machine.

This lock out will only last for 2 hours.

After 2 hours, you should be able try again.

If you have forgotten your password, you can change it.

Go to https://portal.cs.umb.edu/password/

Recordings of Class Meetings

You will find links to the recordings of class meetings here.

Use of Storage Space on the CS LAN

All of you will have an account on the Computer Science Department network.

With this account you get a home directory.

There is a limit on the total size of the files in your home directory.

So you should not store there anything you do not need for your classwork.

Homework 2

I have posted homework 2 here.

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

Class Quizzes

From now on, each class will have a Class Quiz.

The Class Quiz is ungraded.

It is designed to help you remember the material covered in class.

Here is how it works.

Go to the listing of Class Quizzes you will find here.

Click on the link for the quiz you need to take.

Answer all the questions on a piece of paper.

Go to the listing of Class Quiz Answers you will find here.

Check your answers.

First Graded Quiz

The first graded quiz will be given on Tuesday next week.

The questions from the graded quiz are taken from the ungraded quizzes of the previous week.

Unless I tell you otherwise, you should expect a graded quiz each week.

The quiz will be available on Gradescope on Tuesday.

Class Page for IT 116

You may find it useful to look at my materials for IT 116.

I have a web site where I post most of the materials for my courses for the previous semester.

You will find these materials here http://96.126.105.215/umb_classes_html/it116_html/class_page_it116.html .

I have included this link on the class page for the course.

Go to the index for the Class Notes and search for a topic.

You will find the index here http://96.126.105.215/umb_classes_html/it116_html/class_notes_it116/class_notes_index_it116.html .

Do Not Post Anything From this Class Online

There are many web site that claim to "help" students learn new material.

As far as I am concerned sites like Chegg and CourseHero get their money by helping students cheat on their assignments.

Posting ANYTHING on such sites is a violation of your Oath of Honesty and will be reported to the Provost's Office.

This includes quiz and exam questions as well as homework assignments and Class Exercises.

Questions

Are there any questions before I begin?

Tips and Examples

Class Exercises

Getting Help

Describing a Problem

Don't Use Screenshots in Piazza

Making Script Executable

Attendance

Python Review

for Loops

The range Function

Augmented Assignment Operators

Nested Loops

Functions

Function Names

Defining a Function

Calling a Function

Parameters

Local Variables

Functions that Return Values

Returning Multiple Values

Standard Library Functions

Objects

Files

Using Files

Creating a File Object

Writing Data to a File

Closing a File

Using a File More Than Once

Appending Data to a File

Reading Files with a for Loop

Class Exercise

Class Quiz