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
Get step-by-step solutions from verified subject matter experts
