Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- x=[[1,2,3],[4,5,6],[7,8,9]]
- lastColumn = [i[2] for i in x]
- twiceSquare = [2*np.square(i[1]) for i in x]
- print(lastColumn)
- print(twiceSquare)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement