i have to make 3 seperate functions that:
function1. Counts the lines in a my 'logfile' and returns the answer in idle.
function2. counts how many times a certain user is in the 'logfile' for instance how many times 'johnny.killed. peter' has been logged in the 'logfile' and returns only the answer
function3. shows what files the user 'johnny.killed. peter' has looked at and writes the names of the files in a new file called 'pole3.out' with one name per row and it has to b ein alphabetical order with the most popular one first.
number 3 can be a dictionary.
thanks for all ur help guys u are really saving my life!
function1. Counts the lines in a my 'logfile' and returns the answer in idle.
function2. counts how many times a certain user is in the 'logfile' for instance how many times 'johnny.killed. peter' has been logged in the 'logfile' and returns only the answer
function3. shows what files the user 'johnny.killed. peter' has looked at and writes the names of the files in a new file called 'pole3.out' with one name per row and it has to b ein alphabetical order with the most popular one first.
number 3 can be a dictionary.
thanks for all ur help guys u are really saving my life!
Comment