In python I have an array of arrays:
[[1,2,3,4,5,6,7,8,6,5,4,3],
[3,4,5,6,7,8,9,5,3,2,4,2],
[3,4,5,6,7,8,9,5,3,2,4,2],
[3,4,5,6,7,8,9,5,3,2,4,2],
[3,4,5,6,7,8,9,5,3,2,4,2]]
And I want to select for each array in array only firs n elements. For example for n == 4 I will get:
[[1,2,3,4],
[3,4,5,6],
[3,4,5,6],
[3,4,5,6],
[3,4,5,6]]
What is the most short code in Python for this?