Question: Task 1 : Modify the textAnalysis.py program to fix the syllable count. fileName = input ( Enter the file name: ) inputFile =
Task : Modify the
textAnalysis.py program
to fix the syllable count. fileName inputEnter the file name:
inputFile openfileName r
text inputFile.readsentences text.count text.count text.countwords lentextsplitsyllables
vowels "aeiouAEIOU"
for word in text.split: syllables word.countvowel if word.endswithending: if word.endswithle:Compute the Flesch Index and Grade Level
index words sentenceslevel introundwords sentencesOutput the results
printThe Flesch Index is index
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
