File #28 contains the following information:
Example data
Salesperson's name|Division (North, South, East, West)|Number of contacts made for the week|Amount of sales for the week overall
Jim Smith | West | 34 | 8,500
Sue Jones | North | 53 | 12,250
Sally Johnson | North | 48 | 11,350
Tim Riggs | East | 44 | 9,850
Develop a program that prints out detailed lines with each person’s name, number of contacts, sales amount, and average sale amount per contact made. At the end of the report print the totals for number of contacts and sales amount.
This is a problem I am working on for class and am looking for an idea of how to start it.
Things tried so far
code
list = []
f = open('file28.txt')
line = f.readline()
while len(line) != 0:
list = line.split()
line = f.readline()
print list
I had it to the point where i had everything in a list. After that point I don't know where to go. I'm not even sure if this is the easiest way to start it.