CSci 157 - Lab 6
The purpose of this lab is to gain experience with the following:
- operations on specific sequence types, such as lists and tuples
- operations for performing input and output on files
You can work on this singly or in pairs, your choice.
- For Model 2, use the Python interpreter run from Terminal
- For filling out the table in Model 3, do the same as with Model 2. Remember that you can describe long output with a single sentence when necessary.
- While filling out the table in Model 3, you'll want to
research the
string
methodsplit
, which can be extremely useful - The program you're asked to write for Question 14 is much
easier if you understand
split
. Test it using this file: names.txt - Demonstrate your programs to the instructor
Write up the results (cleanly, legibly, and well labeled) and turn in to the instructor.