Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help, thanks
#1
1. This was my quiz and I need help to understand why the correct answer is A? I chose B Sad

The output of the following code is:
X=np.random.random((10,3))
Xmean=X.mean(axis=0)

A. Generate a 10X3 array and get the means of the columns


B. Generate a 10X3 array and get the means of the rows


C. Generate a 3X10 array and get the means of the columns


D. Generate a 3X10 array and get the means of the rows

2. Changing the values in a slice of an array will change the underlying array.

A. True


B. False

I chose False but correct answer is True. Is A correct answer?

Thank you
Reply


Messages In This Thread
Need help, thanks - by buurin123 - Nov-05-2020, 02:43 AM
RE: Need help, thanks - by Gribouillis - Nov-05-2020, 08:03 AM
RE: Need help, thanks - by jefsummers - Nov-05-2020, 12:58 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020