Reshape question
I'm working on the module quiz for data science, and although I pass the first two test cases, I'm not passing the hidden test, and am not sure why. Any hints as to what could be the problem? Task Given a list of numbers and the number of rows (r), reshape the list into a 2-dimensional array. Note that r divides the length of the list evenly. Input Format First line: an integer (r) indicating the number of rows of the 2-dimensional array Next line: numbers separated by the space Output Format An numpy 2d array of values rounded to the second decimal. import numpy as np r = int(input()) lst = [float(x) for x in input().split()] arr = np.array(lst) arr = np.round(arr, 2) (I also tried around) print (np.reshape(arr, (r,2)))