I'm trying to write a program for school. I'm a biotech major and this is a required course, but I'm not a programmer. So, this is probably easy for many, but difficult for me. Anyway, I have a text file with about 30 lines. Each line has a movie name listed first and actors who appeared in the movie, separated by commas following. Here's what I have so far:

```
InputName = input('What is the name of the file? ')
File = open(InputName, 'r+').readlines()

ActorLst = []
for line in File:
    MovieActLst = line.split(',')   

    Movie = MovieActLst[0]        
    Actors = MovieActLst[1:]      
    for actor in Actors:
        if actor not in ActorLst:
            ActorLst.append(actor)

    MovieDict = {Movie: Actors for x in MovieActLst} 
    print (MovieDict)
    print(len(MovieDict))

```

Output(shortened):

```
What is the name of the file? Movies.txt
{"Ocean's Eleven": ['George Clooney', 'Brad Pitt', 'Elliot Gould', 'Casey Affleck', 'Carl Reiner', 'Julia Roberts', 'Angie Dickinson', 'Steve Lawrence', 'Wayne Newton\n']}
1
{'Up in the Air': ['George Clooney', 'Sam Elliott', 'Jason Bateman\n']}
1
{'Iron Man': ['Robert Downey Jr', 'Jeff Bridges', 'Gwyneth Paltrow\n']}
1
{'The Big Lebowski': ['Jeff Bridges', 'John Goodman', 'Julianne Moore', 'Sam Elliott\n']}
1

```

I have created a dictionary (`MovieDict`) that contains a movie name for the key and a list of actors for the values. There are about 30 movie names (keys). I need to figure out how to iterate through this dictionary to essentially reverse it. I want a dictionary that contains an actor as a key and the movies they play in as the values.

However, I think I have created a list of dictionaries as well instead of one dictionary and now I have really confused myself! Any suggestions?