![]() ![]() ![]() That means that some words include punctuation, as in "be, For the input above, your function should produce exactly the following output. THAT IS the question For the purposes of this problem, we will use whitespace to separate words. For example, suppose the file tobe txt contains the following text: To be or riot TO BE. Transcribed image text: You are working on problem set: Cab & Pause) word_stats Language/Type: Python file ingut Nvrite a function named word_stats that accepts as its parameter a string holding a file name, opens that file and reads its contents as a Sequence of words, and produces a particular group of statistics about thenput, You should report the total number of words as an Integer), the average word length (as an un-rounded number) and the number of unique letters used from A-Z case-insensitively. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |