Assignment 14 —
Due Monday February 18
Problem tail.py
- Gets two inputs
- Name of a web file from the class web folder http://www.cs.virginia.edu/cs1112/datasets/text/
- Number of lines of interest,
n
- Outputs the last
n
lists of the web file. If the file is less thann
lines long, outputs the entire web file
- Two program runs
Enter the name of a web file: macbeth
Enter the number of trailing lines of interest: 5
pre eng viehatys di voimakas guaio
mag un inferno salda bouyi und bombolla
dubailte dubailte kesusahan und guaio
umlilo adolebitque und ketel bombolla
Enter the name of a web file: roman
Enter the number of trailing lines of interest: 8
i
v
x
l
c
d
m