final_array = array_camera.append(TD_camera)
final_direction = array_direction.append(TD_direction)

The above 2 lines doesn't work the way you expect.

append() function of list doesn't return anything. It adds data at the end of the list object through which the append() was called.

So final_array & final_direction will be None.

I think you just need to append data to final_array & final_direction. Like this

final_array ,final_direction =[],[]
.....
.....
final_array.append(TD_camera)
final_direction.append(TD_direction)
Answer from Abhijith Asokan on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_dsa_lists.asp
Python Lists and Arrays
In Python, lists are the built-in data structure that serves as a dynamic array. Lists are ordered, mutable, and can contain elements of different types.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_ref_list.asp
Python List/Array Methods
Note: Python does not have built-in support for Arrays, but Python Lists can be used instead.
Discussions

How to create an array from the list of arrays in python - Data Science Stack Exchange
I was trying to write a python code that can set some neural network channels or neurons to zero at the inference; and I wrote the code below. The code generates 10 different arrays for different More on datascience.stackexchange.com
๐ŸŒ datascience.stackexchange.com
December 19, 2017
Python List of np arrays to array - Stack Overflow
However, when I try the following, I get a (10,5,10) array. ... Save this answer. ... Show activity on this post. ... Sign up to request clarification or add additional context in comments. ... For list of arrays with different shapes, one should use: np.concatenate(list, axis=None) ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Python write and read list of arrays - Stack Overflow
So I want to save this in a file ... list of arrays. ... Yes they are Numpy arrays. ... Also, what do you mean by "some Id assigned to each array"? Getting them back in the same order as the original list makes sense, but you don't need IDs for that, and it's hard to see what you're do with themโ€”you just want to preserve the order when you store and load them, which is exactly what happens when you save a Python list as a ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Are arrays and lists essentially the same?
โ€œArrayโ€ is an ambiguous term in Python and best not used. Most beginners use it to refer to the list type, but are unaware that there is actually an array.array type in the standard library as well. More on reddit.com
๐ŸŒ r/learnpython
41
32
May 7, 2022
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_arrays.asp
Python Arrays
Remove List Duplicates Reverse a String Add Two Numbers ยท Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Practice Problems Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Training ... Note: Python does not have built-in support for Arrays, but Python Lists can be used instead.
๐ŸŒ
Readthedocs
pythontutorial-wdyds.readthedocs.io โ€บ en โ€บ latest โ€บ 3_Lists_Arrays โ€บ lists_arrays.html
4. Lists and Arrays โ€” A Python Tutorial for Data Scientists 2.0 documentation
While this was maybe interesting, real modern data is โ€œbigโ€, so we need to be able to deal with collections of data and not just one number at a time. Thankfully, this is where Python has a native list type and where weโ€™ll introduce the extremely useful numpy array, (numpy.ndarray) to handle many data points.
๐ŸŒ
Built In
builtin.com โ€บ data-science โ€บ how-to-create-list-array-python
How to Create Python Lists & NumPy Arrays | Built In
Both lists and NumPy arrays have a wide array of built-in methods for performing a variety of tasks including sorting, finding min/max, truncating, appending, concatenating and much more. Introduction to lists in Python.
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-arrays
Python Arrays - GeeksforGeeks
Although Python does not have a built-in array type like some other languages, similar functionality can be achieved using: Lists are a flexible and commonly used data structure for storing elements in sequence. Unlike arrays in other languages, list: ... Provide functions like append(), remove(), sort(), etc. ... NumPy arrays are a part of NumPy library, which is a tool for numerical computing.
Published: September 19, 2026
๐ŸŒ
New York University
physics.nyu.edu โ€บ pine โ€บ pymanual โ€บ html โ€บ chap3 โ€บ chap3_arrays.html
3. Strings, Lists, Arrays, and Dictionaries โ€” PyMan 0.9.31 documentation
The elements of lists and arrays are numbered consecutively, and to access an element of a list or an array, you simply refer to the number corresponding to its position in the sequence. The elements of dictionaries are accessed by โ€œkeysโ€, which can be either strings or (arbitrary) integers (in no particular order). Dictionaries are an important part of core Python.
๐ŸŒ
Jeff Stafford
jstaf.github.io โ€บ hpc-python โ€บ lists
Lists and arrays โ€” HPC Python
We add a set of square brackets after the list in question along with the index of the values we want. Note that in Python, all indices start from 0 - the first element is actually the 0th element (this is different from languages like R or Matlab). The best way to think about array indices is that they are the number of offsets from the first position - the first element does not require an offset to get to.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-lists-vs-numpy-arrays
Python Lists VS Numpy Arrays - GeeksforGeeks
Elements of an array are stored contiguously in memory. For example, all rows of a two-dimensioned array must have the same number of columns. A three-dimensional array must have the same number of rows and columns on each card. ... A Python list is a collection that is ordered and changeable.
Published: July 12, 2025
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ difference-between-list-and-array-in-python
Difference between List and Array in Python - GeeksforGeeks
January 14, 2026 - The first element of the list is an integer, the second is a Python string and the third is a list of characters. ... An array is a data structure that stores elements of the same data type in contiguous memory locations, making it efficient ...
๐ŸŒ
Awkward-array
awkward-array.org โ€บ doc โ€บ main โ€บ user-guide โ€บ how-to-create-lists.html
How to create arrays of lists โ€” Awkward Array 2.14.0 documentation
If you have a collection of Python lists, the easiest way to turn them into an Awkward Array is to pass them to the ak.Array constructor, which recognizes a non-dict, non-NumPy iterable and calls ak.from_iter().
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ convert-lists-to-arrays-and-back-in-python
How to Convert a List to an Array and Back in Python
December 11, 2025 - In this article, we explored how to convert arrays and lists in Python. You learned that you can use the array module to create arrays of various types and the list() function to convert arrays back to lists.
๐ŸŒ
Medium
medium.com โ€บ @singhasouvik58 โ€บ python-lists-vs-arrays-a-comprehensive-comparison-27f5b646fac2
Python Lists vs Arrays: A Comprehensive Comparison | by Singhasouvik | Medium
May 15, 2025 - When working with Python, youโ€™ll often need to store and manipulate collections of data. Two common choices for this are Python lists and arrays (typically from the array module or libraries like NumPy). While they might seem similar at first glance, they serve different purposes and have distinct characteristics.
๐ŸŒ
Statology
statology.org โ€บ home โ€บ how to create an array of arrays in python (with examples)
How to Create an Array of Arrays in Python (With Examples)
September 16, 2021 - You can use one of the following two methods to create an array of arrays in Python using the NumPy package:
๐ŸŒ
LearnPython.com
learnpython.com โ€บ blog โ€บ python-array-vs-list
Array vs. List in Python โ€“ What's the Difference? | LearnPython.com
Like lists, arrays are ordered, mutable, enclosed in square brackets, and able to store non-unique items. But when it comes to the array's ability to store different data types, the answer is not as straightforward. It depends on the kind of array used. To use arrays in Python, you need to import either an array module or a NumPy package.