Question: # B. front_x # Given a list of strings, return a list with the strings # in sorted order, except group all the strings that
# B. front_x # Given a list of strings, return a list with the strings # in sorted order, except group all the strings that begin with 'x' first. # e.g. ['mix', 'xyz', 'apple', 'xanadu', 'aardvark'] yields # ['xanadu', 'xyz', 'aardvark', 'apple', 'mix'] # Hint: this can be done by making 2 lists and sorting each of them # before combining them. def front_x(words): # enter code here
Solve B) to get a code plz
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
