Question: Given the two lists below: Write a function called merge _ lists to merge the two lists. Call the function with the two lists as

Given the two lists below:
Write a function called merge_lists to merge the two lists.
Call the function with the two lists as parameters
Display the merged list.
# Given these two lists
list1=[1,3,5,7]
list2=[2,4,6,8]
Create a function merge_lists that receives two lists as parameters. The function must sort the lists and returned the values sorted.
#Your code goes here
[1,2,3,4,5,6,7,8]
Call the function with list1 and list2 as parameters. Then print the merged 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 Programming Questions!