1. So I have a dictionary with the set up below
The actor name, the movies they were in, and number to the right of the movies is the actors popularity
dictionary = {1: ['Actor1', {movie1, movie3, movie7}, 89], 2:['Actor35, {movie3, movie7}, 57], 3:['Actor7',{movie7} 64], 4:['Actor9, {movie90} 3 ]}
2. So If someone types in the number 3 (Or any number within the length of my dictionary they go to that actor) into my input they go to Actor7
3. Once they are at actor 7 they look at ALL the movies the actor has been in and compare to all the movies the other actors have been in
4. If any of the actors share a movie append there name to a new list in the order of decreasing popularity(Popularity is the last element in the list)
So it should look like this if they type in 3 because the only actors who share a movie with actor 7 is actor1 and actor35:
final_list = [Actor1,Actor35]
Thanks guys!!!🤗
The actor name, the movies they were in, and number to the right of the movies is the actors popularity
dictionary = {1: ['Actor1', {movie1, movie3, movie7}, 89], 2:['Actor35, {movie3, movie7}, 57], 3:['Actor7',{movie7} 64], 4:['Actor9, {movie90} 3 ]}
2. So If someone types in the number 3 (Or any number within the length of my dictionary they go to that actor) into my input they go to Actor7
3. Once they are at actor 7 they look at ALL the movies the actor has been in and compare to all the movies the other actors have been in
4. If any of the actors share a movie append there name to a new list in the order of decreasing popularity(Popularity is the last element in the list)
So it should look like this if they type in 3 because the only actors who share a movie with actor 7 is actor1 and actor35:
final_list = [Actor1,Actor35]
Thanks guys!!!🤗


![[Image: ouURNlq.png]](https://i.imgur.com/ouURNlq.png)

![[Image: folks.gif]](https://gfxf.net/images/2017/04/17/folks.gif)