Introduction
In this tutorial we will learn how to merge arrays in python. As you guys know python is high level and general purpose programming language and have many methods and functions to find the required output. We will provide you with simple easy tricks and suggestions to how to achieve your goal
Merging of array means concatenating a number of arrays together. Concatenation can be done using the “+” symbol for easy merging. Concatenation of arrays means merging two or more different arrays into a single array
Code
a=[1,2,3,4,5] #enter some numbers to the array to the variable "a" b=[6,7,8,9,10] #enter some numbers to the array to the variable "b" c=a+b #concatenate the variables a and b to variable "c" print(c) #print the variable c
Output
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]