subject

Implement the following functions

def normalize(input_string):

input: a string of text characters. Each character is called a token.

output: an array of 'letters'. Each item in the array corresponds to a letter in input_string (in lowercase)

for example, the input "O. K. #1 Python!" would generate the following list: ['o','k','p','y','t','h','o','n']
look at the documentation for string functions; don't try to replace, delete, or substitute -- if the 'token' is a letter it passes the test.

def find_missing_letters(sentence):

the input sentence is an array/list (created from normalize())

returns a sorted array of letters that are NOT in the sentence

use the built in Python type set to solve (see previous lesson)

def find_missing_letters_algorithm(sent ence):

the input sentence is an array/list (created from normalize())

returns a sorted array of letters that are NOT in the sentence

you must NOT use the set type

implement the function pipeline(), which pipes the output of each step in the pipeline process into the next stage. For example, if you had the functions a1, b2, c3, pipeline would just do something like return c3(b2(a1())).

The answer should read (inside out) and be a single line of code.

You can use either find_missing_letters_algorithm or find_missing_letters since both return the same output.

Your final stage should be calling visualize (already done)

starter code

import lesson

def test_missing_letters():
sentence = lesson. normalize("I am missing many letters")
s = lesson. find_missing_letters(sentence)
print(s)

# First test your implementation
test_missing_letters()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 Β½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1Β½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
question
Computers and Technology, 22.06.2019 19:10
What a backup plan that you have created in a event you encounter a situation
Answers: 2
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
You know the right answer?
Implement the following functions

def normalize(input_string):

input: a stri...
Questions
question
Mathematics, 20.09.2019 17:00
Questions on the website: 13722367