Question: python3.6 4. Write a function n letter) that takes a list Ist of strings and anon-negative 0) integer n as a parameter and returns a
4. Write a function n letter) that takes a list Ist of strings and anon-negative 0) integer n as a parameter and returns a new list containing all of the strings in Ist that have length n. If n is negative or lst is empty the function should return au empty list. The original list should not be modified. The following shows several sample rms of the fimction: 74 Python Shell indows Help file Edit Shel' Debug Options I'dog, 'cat'. bus' [ 'atop' , . door . ] > n letter(t'dog', Jeccer, stop', 'door,cat',buso15 ('floor. >> n letter" , dog'-4ette, .stop.. .door' 'cat'. .bun', 'floor.], 2) t1 nletter(t),s) ter('anhe, 3) I1 Ln: 69 Cob
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
