1. Display all the characters in the list. 2. Identify and display characters from science fiction genre movies. 3. Calculate the average rating of all characters in the list. 4. Create a frequency distribution of character species in the list. Each element in the distribution should represent the count of characters belonging to a specific species. 5. Store all the characters in "MovieCharacters.txt" in a Python set. 6. Output all unique directors of the movies featuring these characters. 7. Output the total number of entries in your set. ● Write a program in Python that reads a list of movie characters from a file named "MovieCharacters.txt" and accomplishes the following tasks: ● MovieCharacters.txt: "Neo", Human, 30, Science Fiction, The Matrix, Lana Wachowski "Ellen Ripley", Human, 35, Science Fiction, Alien, Ridley Scott "Yoda", Alien, 900, Science Fiction, Star Wars, George Lucas "E.T.", Alien, N/A, Science Fiction, E.T. the Extra-Terrestrial, Steven Spielberg "Darth Vader", Human, 45, Science Fiction, Star Wars, George Lucas "Forrest Gump", Human, 32, Drama, Forrest Gump, Robert Zemeckis "Jack Sparrow", Human, 40, Adventure, Pirates of the Caribbean, Gore Verbinski

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
1. Display all the characters in the list.
2. Identify and display characters from science fiction genre movies.
3. Calculate the average rating of all characters in the list.
4. Create a frequency distribution of character species in the list. Each element in the
distribution should represent the count of characters belonging to a specific species.
5. Store all the characters in "MovieCharacters.txt" in a Python set.
6. Output all unique directors of the movies featuring these characters.
7. Output the total number of entries in your set.
•
"Neo", Human, 30, Science Fiction, The Matrix, Lana Wachowski
"Ellen Ripley", Human, 35, Science Fiction, Alien, Ridley Scott
• "Yoda", Alien, 900, Science Fiction, Star Wars, George Lucas
"E.T.", Alien, N/A, Science Fiction, E.T. the Extra-Terrestrial, Steven Spielberg
"Darth Vader", Human, 45, Science Fiction, Star Wars, George Lucas
"Forrest Gump", Human, 32, Drama, Forrest Gump, Robert Zemeckis
"Jack Sparrow", Human, 40, Adventure, Pirates of the Caribbean, Gore Verbinski
●
•
.
Write a program in Python that reads a list of movie characters from a file named
"MovieCharacters.txt" and accomplishes the following tasks:
.
●
MovieCharacters.txt:
Transcribed Image Text:1. Display all the characters in the list. 2. Identify and display characters from science fiction genre movies. 3. Calculate the average rating of all characters in the list. 4. Create a frequency distribution of character species in the list. Each element in the distribution should represent the count of characters belonging to a specific species. 5. Store all the characters in "MovieCharacters.txt" in a Python set. 6. Output all unique directors of the movies featuring these characters. 7. Output the total number of entries in your set. • "Neo", Human, 30, Science Fiction, The Matrix, Lana Wachowski "Ellen Ripley", Human, 35, Science Fiction, Alien, Ridley Scott • "Yoda", Alien, 900, Science Fiction, Star Wars, George Lucas "E.T.", Alien, N/A, Science Fiction, E.T. the Extra-Terrestrial, Steven Spielberg "Darth Vader", Human, 45, Science Fiction, Star Wars, George Lucas "Forrest Gump", Human, 32, Drama, Forrest Gump, Robert Zemeckis "Jack Sparrow", Human, 40, Adventure, Pirates of the Caribbean, Gore Verbinski ● • . Write a program in Python that reads a list of movie characters from a file named "MovieCharacters.txt" and accomplishes the following tasks: . ● MovieCharacters.txt:
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education