Contact: aviboots(AT)netvision.net.il
39,870 questions
51,793 answers
573 users
import numpy as np matrix = np.arange(9).reshape((3,3)) print(matrix) ''' run: [[0 1 2] [3 4 5] [6 7 8]] '''
import numpy as np matrix = np.arange(25).reshape((5,5)) print(matrix) ''' run: [[ 0 1 2 3 4] [ 5 6 7 8 9] [10 11 12 13 14] [15 16 17 18 19] [20 21 22 23 24]] '''