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).

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

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python function called movieCount that should meet your requir... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!