Question: Part III: Letter Puller (20 points) Write a function pull that takes two arguments, in the following order: 1. strings: a list of strings (e.g.,

 Part III: Letter Puller (20 points) Write a function pull that

takes two arguments, in the following order: 1. strings: a list of

Part III: Letter Puller (20 points) Write a function pull that takes two arguments, in the following order: 1. strings: a list of strings (e.g., ' abcde','fghj', jk]) an integer that indica The function extracts the character at index i of each string, appends the characters to an empty list, and then returns the resulting list. For example, if i-2, then the function extracts the character at index i of each string, if such a character exists, and appends them to a list. For the list of strings above the returned result would be 'c, 'h'. Hints: . Recall that the valid indexes of a list are 0 through len (list_name)-1. Use this fact to see if a list is long enough to have a character with indexi . To create an empty list, type list-ame = [ ] , where list-name is the name of the list. Use the append method to append an item to the end of a list. For example, to append letter to the list called result, type result.append (letter)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!