I have a list that has the following format:

```
mylist = ["Joe, 100%", "Joe, 80%", "Joe, 90%", "Sally, 95%", "Sally, 80%", "Jimmy, 90%", ...]

```

What I am trying to do is, first count the number of times each name appears. If a name appears 2 or more times, append that name along with the average percent. So, I'm trying to get to the following output:

```
newlist = ["Joe, 90%", "Sally, 87.5%"]

```

To try this, I did `mylist.split(", ")` to get the names only, and used `Counter()` to find how many times the name appears. Then, I used a simple `if >= 2` statement to append the name to `newlist` if the name appears 2 or more times.

However, despite trying many different things, but I wasn't able to figure out how to get the percentages back with the name in the final list. I also am unsure how to word my question on Google, so I wasn't able to find any help. Does anyone know how to do this? If this question is a duplicate, please let me know (and provide a link so I can learn), and I can delete this question. Thanks!