Advertisement
Guest User

6.3.py

a guest
May 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. import numpy as np
  2. x=[[1,2,3],[4,5,6],[7,8,9]]
  3. lastColumn = [i[2] for i in x]
  4. twiceSquare = [2*np.square(i[1]) for i in x]
  5. print(lastColumn)
  6. print(twiceSquare)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement