android patern plotting in python : for school i need to make make a android patern or just a patern in a 3x3 matrix 
the pattern is [8, 7, 6, 5, 4, 3, 2, 0, 1] and i need to plot it in a 3x3 matrix
the first entry in the pattern is the beginningpoint and it connects to the second in the row
the result needs to be 
8,9,7
6,5,4
3,2,1

patern = [8, 7, 6, 5, 4, 3, 2, 0, 1]
matrix = [0,0,0,0,0,0,0,0,0]

lijst = ([matrix[i:i + 3] for i in range(0, len(matrix), 3)])
for i in lijst:
    print(i)

for char in patern:
    matrix[char]=char


