Question: Write a function called movieCount that takes in two parameters: a list of movies (list) and a keyword (str). The function should count and
Write a function called movieCount that takes in two parameters: a list of movies (list) and a keyword (str). The function should count and return the number of movie(s) that have the keyword in the title. Make sure to check for upper and lowercase appearances. Example #1: >>> movieCount(["Frozen", "The Princess and the Frog", "Beauty and the Beast"], "The") Expected Output #1: 2 Example #2: >>> movieCount(["King Kong", "Kingsman: The Secret Service", "The Lion King"], "king") Expected Output #2: 3
Step by Step Solution
3.52 Rating (159 Votes )
There are 3 Steps involved in it
Heres a Python function called movieCount that should meet your requir... View full answer
Get step-by-step solutions from verified subject matter experts
