daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a=np.array([[1,2,3],[4,5,6]])
  2.  
  3. def zamiana(tab):
  4.  
  5.     array_to_return=[]
  6.     for i in range(0, np.size(tab, 0)):
  7.         new_array=[]
  8.         for j in range (0, np.size(tab, 1)):
  9.             new_array.extend([tab[i, np.size(tab, 1)-j-1]])
  10.         array_to_return.append(new_array)
  11.     return np.array(array_to_return)
  12.  
  13. print(zamiana(a))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top