subject

Write a function named find_words that has two parameters fp a file pointer
name a string.
The file pointer fp is for a file of the 3000 most commonly used English words with one word per line and each word is lower case. Ignoring case, find all the common English words in the name and print them one word per line of output.
Remember that each line in the file has a new line character at the end that needs to be removed. For example, if the name is Lansing, the following words are printed
1. a
2 i
3. in
4. sin
5. sing
1. Write your function here.
2
3
4
5
6 ###
7 #DO NOT REMOVE THESE LINES #
8 fp = open("word_list. txt") #
9 name = input("Input: ")
10 find_words(fp, name)
11 fp. close() 12 HE

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:40
Match the personality traits with their description
Answers: 2
question
Computers and Technology, 22.06.2019 22:10
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≀ n ≀ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Which of the following is not a way in which trees benefit the environment? a. they remove a significant amount of carbon dioxide from the atmosphere. b. they remove a significant amount of oxygen from the atmosphere. c. their roots hold soil in place, reducing rates of erosion. d. they remove ozone and particulates from the atmosphere. select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
Write a function named find_words that has two parameters fp a file pointer
name a string. <...
Questions
Questions on the website: 13722367