Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python programming. 3 codes third code does not require another file. It just requires the code to be finished. DAE 1 Normal 1 No Spac...
python programming. 3 codes
third code does not require another file. It just requires the code to be finished.
DAE 1 Normal 1 No Spac... Heading 1 Heading 2 Title Subtitle Subtle Paragraph Styles Write a function that takes a list of strings as a parameter. The function should print out a report with the following statistics The number of words in the list. The longest word (just provide the first if there is more than one). The average word length Here is an example pets['dog", "hippopotamus", "cat", "mule", "eagle") The number of words is 5 The longest word is hippopotamus The average word length is 5.4 Write a function call search that takes a word (string) as a parameter. The function then searches the movie titles in the file movies.txt attached in the assignment) and reports any matches with the given word. The function should also display the number of matches. Here is an example search("war") 30.91% Star Wars: The Last Jedi (2017) 462 38. 98% Snow White and the Seven Dwarfs (1937) 50 52.93% Star Wars: Episode VII - The Force Awakens (2015) 430 71.94% War for the Planet of the Apes (2017) 346 99.91% Captain America: Civil War (2016) 406 Dro Write a function call search that takes a word (string) as a parameter. The function then searches the movie titles in the file movies.txt (attached in the assignment) and reports any matches with the given word. The function should also display the number of matches. Here is an example search("war") 30.91% Star Wars: The Last Jedi (2017) 462 38.98% Snow White and the Seven Dwarfs (1937) SOL 52.93% Star Wars Episode VII The Force Awakens (2015) 430 71.94% War for the Planet of the Apes (2017) 346 99. 91% Captain America: Civil War (2016) 406 There were 5 matches Finish this program by writing a constructor in order for it to run with no errors class PhonePlan def print.plan(self): print("Mins' self.nummins, end='') print('Messages, sell num_messages) # Add constructor # Your solution goes after this comment I my plan = PhonePlan 200, 300) dadsplan = Phone Plano print('My plan...', end='') my.plan.print plano print('Dad's plan..., end='') dads. plan.print planoStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started