MONT 105S, Spring 2009

Home | | Course Schedule | | Assignments | | Lecture Notes

Laboratory 4
Due at the end of today's class

Problem 1:
Write a Python program, named reverseString.py, that does the following:

You should use the program skeleton given below:

A sample session for the problem might look like the following:

Please enter a word or phrase: parrot
t
o
r
r
a
p

Problem 2:
Write a Python program, named addOne.py, that does the following:

You should use the program skeleton given below:

A sample session for the problem might look like the following:

What To Turn In.

A printed listing of the lab programs. Be sure that your name is in the program prologue’s comment section of the program.

Reminder.

Be sure to save a copy of each program on your P:\ drive.