Question: Problem 3 : Write a function called first _ word that takes a list of character strings as input and returns the first element of

Problem 3: Write a function called first_word that takes a list of character strings as input and returns the first element of the list in alphabetical order. For
example, your function should work like this:
students =['Mary', 'Zelda', 'Jimmy', 'Jack', 'Bartholomew', 'Gertrude']
first_word(students)
'Bartholomew' # The result
Hint: You'll need to first sort your list in the function to accomplish this, then identify the first element. Within a function, it is a good idea to use multiple lines of
code to separate out the different steps. Just make sure all the code that belongs to the function is indented!
After you've written the function, run it by supplying the list teams to your function as an argument to test it.
 Problem 3: Write a function called first_word that takes a list

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!