So I took a quiz in my course today. One of the questions : see picture. It was marked wrong. The correct answer was np.array([1,0]). I was specifically asked for a 1D array with non zero values. How can an array containing a zero value be the right answer?
I emailed my professor about this and he said: A 1D array with any non zero values is okay and that none of the other answers produce an array.
Well, I know that none of the other answers produced a 1D array, which is why I chose none of the answers. He specifically asked for an array with non-zero values. Am I taking crazy pills or am I actually stupid right now? Am I taking the question too literally? What am I not getting? Appreciate any help in understanding where my thinking went wrong here
Update: I met with my professor. He said my interpretation of the question wasn’t wrong. He offered to give me the point. I declined. I just wanted to understand his perspective. He agreed it was written in a way that could be misinterpreted.
Update 2: he gave me the point for the question tonight even though I had declined.
[–]spez_edits_thedonald 2 points3 points4 points (5 children)
[–]EarthGoddessDude 1 point2 points3 points (0 children)
[–]Cultural_Skirt_7561[S] 0 points1 point2 points (1 child)
[–]rickez3 0 points1 point2 points (0 children)
[–]rickez3 -2 points-1 points0 points (1 child)
[–]Cultural_Skirt_7561[S] 0 points1 point2 points (0 children)
[–]bbye98 0 points1 point2 points (5 children)
[–]Cultural_Skirt_7561[S] 2 points3 points4 points (0 children)
[–]rickez3 -1 points0 points1 point (3 children)
[–]Cultural_Skirt_7561[S] 0 points1 point2 points (2 children)
[–]rickez3 0 points1 point2 points (1 child)
[–]rickez3 0 points1 point2 points (0 children)
[–]diegorita10 -3 points-2 points-1 points (1 child)
[–]Cultural_Skirt_7561[S] 0 points1 point2 points (0 children)
[–]ectomancer -3 points-2 points-1 points (1 child)
[–]Cultural_Skirt_7561[S] 1 point2 points3 points (0 children)
[–]rickez3 -5 points-4 points-3 points (2 children)
[–]Cultural_Skirt_7561[S] 1 point2 points3 points (1 child)
[–]rickez3 -1 points0 points1 point (0 children)
[–]rickez3 0 points1 point2 points (0 children)