how to add list to array in python code example
Example 1: append element to an array python
x = ['Red', 'Blue']
x.append('Yellow')
Example 2: how to add to the end of an array python
array = [1 , 2, 3]
print(array)
array.append(4)
print(array)
#[1 ,2 ,3]
#[1 ,2 , 3, 4]