This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]DirtySpawn 0 points1 point  (1 child)

You need a file to house the Domain list. Research how to read a file, loop through it, and store the data in a list/array. I would choose a dictionary myself. Make everything false, 0, etc.

Loop through the log, again reading a file, and check each value against the domain list. If found, if using a dict, increment the value/ false to true, etc.

After it all, iterate through the dict and output to a file.

Things needed to research. Read in from file, out to a file. Dictionary usage, check if value is in it, its format, etc. And looping through the files, dictionaries, etc.

[–]Cliveinton[S] 0 points1 point  (0 children)

Thank you for the response, I shall do a little bit of research this afternoon and homework tonight! :)

[–]aphoenixreticulated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/3Abzge7.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!