Question: Python Problem 3: You should have a file called 'english.sorted' from previous exercises. If not, get it from http://bit.ly/2m5BjBm. Write 'prob3.py' to output the total
Python Problem 3:
You should have a file called 'english.sorted' from previous exercises. If not, get it from http://bit.ly/2m5BjBm.
Write 'prob3.py' to output the total number of words in the 'english.sorted' file that contain consecutive Cs, case insensitive, e.g., peccadillo. Don't display the words; display only the total number of words that contain consecutive Cs. The program must read 'english.sorted' as a file object, not through standard input. Use Python regular expression matching. References: . Section of the Python notes on "Python Syntax - files (not stdin)". . Section of the Python notes on "Python & regular expressions"
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
