def merge(list1,list2):
if list1 == list2:
return list1
merge_list=list1+list2
return merge_list
list1=[1,2,3,4,5]
list2=[6,7,8,9,10]
print("list1:",list1)
print("list2:",list2)
merged=merge(list1,list2)
print("merge list are: ",merged)
Output:-
0 Comments