Python Challenge

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

Hi alh,
Instead of placing the requirements, could please you copy/paste the code you have tried up to this point?
Could you also copy/paste any error codes that you are getting when you run your code?
This way we can understand what is slowing you down.
:sunglasses:
PS I found the first steps were the biggest hurdles.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.