Solution Exercise 8: Duplicating a numpy matrix
Exercise 8 Generate a numpy matrix by repeating a smaller 2-dimensional, 5 times. Solution import numpy as npA = np.array([[5 , 7], [3 , 9]])C = np.tile(A , 5)print(C)"""attach:[[5 7 5 7 5 7 5 7 5 7] [3 9 3 9 3 9 3 9 3 9]] """ Younes Derfoufimy-courses.net