Question: python script Problem 4. Implement the function count_dialogue, with the following behavior: Accepts two arguments. The first argument is the path to a file containing
Problem 4. Implement the function count_dialogue, with the following behavior: Accepts two arguments. The first argument is the path to a file containing a play, formatted like ti othello.txt file in the data folder. The second argument is a string giving the name of a characte (with any possible capitalization) Determines the total number of white-space separated words spoken by the character in the play Returns this number of words, as an integer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
