We have given two array or list ,our task is to merged them both and print there are several methods todo some if building and some of other way in this chapter we looking for list default building method to merged two array one and another using some methods
#01 Method
Using python list .extend method:
In this method we using extend attribute function call and passing second list array inside it and assigning to our first array like this below.
arr1 = [1,3,4,5]
arr2 = [7,8,9,10]
arr1.extend(arr2)
print(arr1)