Question
Using python code generate a program that scrambles the letters of each word on a file of text. The first and last letters of each
Using python code generate a program that scrambles the letters of each word on a file of text. The first and last letters of each word need to remain the same and the inner letters should be scrambled. Only words longer than three letters should be scrambled. Capitalization must be preserved. You are required to deal with punctuation that comes at the beginning or end of a word (period, question mark, etc.). Keep the original paragraph format as it is on the original file text. The scrambled text should be printed to the screen. You need to display the longest word(s) encountered along with its scrambled version. If there are two or more they all need to be displayed. For any word(s) that was encountered 5 or more times, you need to output a line with the word, the number of times it occurs in the text and all the ways it was scrambled ([word] occurs [#] times and was scrambled as: ...).
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