Iterating through a directory, storing the extensions of files as a key and the files themselves as their values in a dictionary.
Now I want to add another function called "scanfilesforerrors(filegroups)" where I want to take all keys with .txt or .log extensions and read their contents and print the amount of lines my program found that included an "err*" message.
Though I'd need help with that. This is what I currently have but it gives me an error message: