Im having problems with these challenge questions can anyone help please:
after opening a specific file I need to;
Write a function ip_result
that:
- Searches for lines with IP
- Counts the number of each IP
- Puts the results in a dictionary
- Sorts the dictionary
- Puts the results into a file
Write a function invalid_user_count
that:
- Searches for invalid user logins
- Counts the invalid logins for each user
- Puts the results in a dictionary
- Sorts the dictionary
- Puts the result into a file
Write a function failed_logins
that:
- Searches for wrong passwords
- Counts the failed logins
- Puts the results in a dictionary
- Sorts the dictionary
- Puts the result in a file
Call the functions