Write a Python program that reads in a file of data on monster movies and perform some simple processing on the data.
The file has the following format:
- Each line has 3 fields, separated by pipe ('|') characters.
- The first field is the movie title.
- The second field is the year the movie was released.
- The third field is the list of other monsters that appeared in the movie. Name are separated by commas.
Do the following:
- Open the file and read in all of the data.
- How many movies are listed?
- Determine how many times that pesky moth (Mothra) appeared in the movies.