arr1 arr2 arr2Second arr2 -1 arr2Third arr2 arrFinal arr1 arr2Third ar

1
2
3
4
5
6
arr1 = [1, 2, 3]
arr2 = [4, 5, 6, [7, 8, 9]]
arr2Second = arr2[-1]
arr2Third = arr2[:3]
arrFinal = arr1 + arr2Third + arr2Second
print(arrFinal)