Function description Function output(s) / return value(s) Function name Function input(s) get_sentences() Returns the number of sentences in the text. Тext Number of sentences get_words() Returns the...


please code in python
Write a Python module
t.py that gets a block of text from the user and prints some statistics about the text.
These are the minimum required functions for this program. Design and implement these functions. You
can create more functions if you choose to.




Function description<br>Function output(s) /<br>return value(s)<br>Function name<br>Function<br>input(s)<br>get_sentences()<br>Returns the number of sentences in the text.<br>Тext<br>Number of sentences<br>get_words()<br>Returns the number of words in the text.<br>Text<br>Number of words<br>get_punctuations()<br>Returns the number of punctuations in the text.<br>Тext<br>Number of<br>punctuations<br>Prints the number of occurrences of<br>Block of text<br>Occurences of letters<br>in the text<br>print_letters()<br>case-insensitive letters in the text.<br>Case-insensitive means that a letter is the same<br>whether it is uppercase or lowercase.<br>The function should print the letters in decreasing<br>order of the number of occurrences. If multiple<br>letters have the same number of occurrences,<br>print the letters in alphabetical order. Separate<br>groups of letters with the same number of<br>occurrences by a blank line.<br>print_palindromes()<br>Prints the number of occurrences of<br>Block of text<br>Occurences of<br>palindromes in the<br>text<br>case-insensitive palindrome numbers and<br>palindrome words and letters in the text. The<br>function should print the palindromes sorted<br>alphanumerically with their number of<br>occurrences. Numbers must be printed first,<br>words and letters printed next.<br>main()<br>Driver function that calls all the functions above.<br>None<br>

Extracted text: Function description Function output(s) / return value(s) Function name Function input(s) get_sentences() Returns the number of sentences in the text. Тext Number of sentences get_words() Returns the number of words in the text. Text Number of words get_punctuations() Returns the number of punctuations in the text. Тext Number of punctuations Prints the number of occurrences of Block of text Occurences of letters in the text print_letters() case-insensitive letters in the text. Case-insensitive means that a letter is the same whether it is uppercase or lowercase. The function should print the letters in decreasing order of the number of occurrences. If multiple letters have the same number of occurrences, print the letters in alphabetical order. Separate groups of letters with the same number of occurrences by a blank line. print_palindromes() Prints the number of occurrences of Block of text Occurences of palindromes in the text case-insensitive palindrome numbers and palindrome words and letters in the text. The function should print the palindromes sorted alphanumerically with their number of occurrences. Numbers must be printed first, words and letters printed next. main() Driver function that calls all the functions above. None
Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here