Hey I want to create a 2d-Array
with no predefined length and then replace the elements. without using numpy
.
Here a simplified version with my Problem:
>>> test = 2*[2*[0]]
>>> test[0][0] = "Hello"
>>> print(test)
[['Hello', 0], ['Hello', 0]]
This is the output I would like to have:
[['Hello', 0], [0, 0]]