Anonymous
timer Asked: Apr 21st, 2020

Question Description

a. Write a function named find doubleletter(word) which returns True if the word has a letter that is ’doubled’ in the word. For example, if the word is command then the function would return True because ’m’ is doubled. But if the word is repeated then the function would return False because while ’e’ is in the word multiple times, it is not repeated in adjacent positions. That is the letter must be beside itself. b. Write a function that searches words.txt and counts the number of words that have double letters of any kind. You should use the function from part a in your code for part b. Requirements for this program are as follows:

1. Your program must include a comment header with Author, Assignment (Program 6), Description, and Due Date

2. Your function for part a must be named correcly

3. Your function for part a must correctly find double letters

4. Your function in part b must use your function from part a

5. You should print the final count of words in a clear and understandable way.

6. Your program that you submit must be a script in a file named program6 WillM.py where you replace WillM with your first name and last initial.

7. Submit just that program on Blackboard under Chapter 9, Program 6.

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors