create an array and slice second column

WAP to create an array and slice second column
Note: Give the input in the code itself

Sample input:
[[1,2,3],[4,5,6],[7,8,9]]

Expected output:
[[2]
[5]
[8]]
Total : 0 Discussion
Login