Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i need help with problem 4 $ 5 . i did 1-3 . its a python programming class for starters , so please solve it
i need help with problem 4 $ 5 . i did 1-3 . its a python programming class for starters , so please solve it as simple as possible and give seprate codes , dont loop them . thank you For this test, you will write a program that performs some analysis of the novel Alice's Adventures in Wonderland by Lewis Carroll. First, please download the provided file alice.txt, which is the full text of the novel. Then, write a program called test2.py that reads the provided file and reports the following information about it: 1. The total number of words 2. The average number of words in a line (total number of words / total number of lines) 3. The line with the most words and the number of words in that line 4. The total number of lines in your Python source code 5. Provide an interface that allows the user enter a word to look up how many lines contain that word and to see up to the first ten such lines. If no lines contain that word, then your program must output Not found. ent-hd-424759441_1/courses/HTRO1 CSCI_13300_02_1212.1/at-home/Unitinstruction.html Total number of words: 26466 Average number of words in a line: 7.355753196220122 Longest line has 16 words: Alice was not a bit hurt, and she jumped up on to her feet in a Total number of lines in Python source code: 33 Enter word: Alice Alice was beginning to get very tired of sitting by her sister thought Alice without pictures or conversation?' There was nothing so VERY remarkable in that; nor did Alice POCKET, and looked at it, and then hurried on, Alice started to In another moment down went Alice after it, never once and then dipped suddenly down, so suddenly that Alice had not a 'Well!' thought Alice to herself. after such a fall as this, I you see, Alice had learnt several things of this sort in her or Longitude I've got to?' (Alice had no idea what Latitude was, Down, down, down. There was nothing else to do, so Alice soon 392 lines contain Alice
i need help with problem 4 $ 5 . i did 1-3 . its a python programming class for starters , so please solve it as simple as possible and give seprate codes , dont loop them . thank you
Step 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