Time: 20-30 minutes
Purpose: Give you practice with using python to search through files.
Introduction: This activity builds on the material covered in the course section on log file parsing. There is a video that shows the solution and you can also see the work solution here, but it is highly recommended that you try this out on your own first to see if you can solve it. Feel free to post questions in this topic as well if you get stuck on something!
Task:
Parse through the logfile.txt data (which can be downloaded from here) and compare the average time taken for users with Firefox to users with Chrome.
Some Hints:
- You may want to start with the log file search example from previous videos (you can get it here ) and modify it
- There are a few tricky things you might run into with this - Donβt forget about the skills you learned in the debugging video!
- You may find the sum() function to be helpful (look it up in the documentation)