Question: Code with Python 3.0 This is an individuel assigrment check Blackboard for the due deles: Before you Begin Before starting this assignment, review the lecaure
Code with Python 3.0
This is an individuel assigrment check Blackboard for the due deles: Before you Begin Before starting this assignment, review the lecaure and recitaton material on Strings, Lists, List Text File Analysis In Lab Prep 8, ycur program read data from a file and created a Dictionary with a count of the number ol occurrences each unique character, In this ass gnment you're going to complete a more compiete analysis of a file including the follcwing statistios: Sentcnoo Count Shorest Sentence Longest Sentence Number or Unique Words Tatal Number of Words Tap 5 Word Frequencies (%) Maximum Word Length Number of Un que Characters Tatal Number of Characters Lab 8 Program Requirements Your Python program should most the following requiroments: .The Python filoname should bo 1ab8.py The header should describe the program and contain your name function that describes the program All commands should be in functions including for the filename to analyze. the IDLE terminal window and Dictionary) main . The program should be flexible and aapable of analyzing any text file. It should prampt the user The outpu! of the program should be a display of the Characler, Word and Sentence statistics in . The program should use at least ane (1) of oach type of data sequence (Set, Tuple, List, String Lab 8-Task List Display welcome and describe program functian Prompt user for filename to analyze .Open file Read data .Close file .Anelyze sentence statistics Analyze word statistics * Anayze characher statistics .Display reports in IDLE terminal window
Step by Step Solution
There are 3 Steps involved in it
Below is a Python program that meets the requirements described in your assignment It performs text file analysis to calculate sentence word and chara... View full answer
Get step-by-step solutions from verified subject matter experts
