New to python and I´m trying to create a list from the lists created on for loop:
A = [[1,2,3],[4,3,2],[8,5,6]]
for l in range(len(A)):
resultado = []
A2 = A[l][::-1]
resultado.append(A2)
print(resultado)
The current output is:
[[3, 2, 1]]
[[2, 3, 4]]
[[6, 5, 8]]
I´m trying to make this:
[[3, 2, 1],[2, 3, 4],[6, 5, 8]]