+ 3
Why is this not correct?
I was attempting the Module 1 quiz in the Data Science Course, and came across this weird question. (it was the last question in that quiz) The question was: Which of the following commands is to multiply the first row of a 2d array 'arr' by 3: The options were: 1. arr[0 , : ]*3 2. arr[ : , 0]*3 3. arr[0] * 3 I selected option 3, and Sololearn says that it it incorrect, and that the correct answer is actually option 1 However, when I run that in python, both of those perform the exact same operation. Did the author mess up, or am I mistaken in some concept?
1 Réponse