Question: Write a user - defined function that, when passed a list of lists as argument,merges the lists into one single continuous list, sorts it ,
Write a userdefined function that, when passed a list of lists as argument,merges the lists into one single continuous list, sorts it and returns it to the calling code.
It is necessary that your function perform correctly, no matter how many lists are contained in the list of lists, and no matter what the length of the lists.
Your code should work equally well for both of these lists:
groceries apple 'banana','cherry'
potatoes 'beans', 'broccoli'
hamburger 'chicken', 'steak'
salmon 'snapper', 'tuna'
tools chisel 'hammer' 'saw'
screwdriver 'wrench'
funnel 'crowbar', 'pliers', 'ratchet'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
