2801-full.log
For this project, youwill need to create a Python script that will parse through theattached log file and report how many bad login attempts for theuser “root” are in this log file. You only need tooutput the number of bad user attempts in the following format,where XX is the integer for bad logins:
“There were XX amountof bad login attempts for the root user.”
You may not be able toaccess the log file. I just need the code I can input the file
Answer
filename = input(‘Enter file name: ‘)count = 0f = open(filename, ‘r’)sentence
OR
OR