I have a list of webpages for example

`pages = [login, ask, profile, search]`

I am busy iterating through a different list of users, each can visit **any** webpage several times.
I need to know who the **top visitor for each page is**. I want to use dictionaries because of its functionality.

This is hard to explain, because I have many many nested structures in my code. To simplify I will both word the problem, and try and illustrate.

PROBLEM:

When iterating through a user, another nested iteration IS a webpage that the user visited.

```
users = ['tom', 'jerry', 'dexter', 'deedee', 'buttercup']

for user in users:
   for session in sessions:
      for page in activities:
            webpage = user_visited  # this can be any of the pages mentioned earlier

```

I need to find a way to see for each `webpage` which `user` visited it **most**

EXPECTING something like this:

```
{ login: dexter, ask: jerry, profile: buttercup, search: tom}

```

I am open to any method, please help