i'm trying to create an 2-dimensional matrix with an array, but i don't quit understand it yet.
I've tried this
for i in range(x):
for k in range(y):
array.array('u', [i] : [k])
I'm trying to make an field with x, y as in height and width.
edit:
well, i've changed it now and came to this solution, wich fixs my problem
import array
x = int(input('width: '))
y = int(input('height: '))
Matrix = array.array("u", ['.' for i in range(x) for k in range(y)])
Matrix.tounicode
print(Matrix)
With this i'm creating an field as an array, although i have to see how tounicode really works, possible i need a hash-function.