Numpy Array Problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Numpy Array Problem

Explain line 9. ???😏😏😏 Of the following code.. https://code.sololearn.com/cWPFaV5h1InS/?ref=app

17th Aug 2018, 9:52 AM
C ++
C ++ - avatar
3 Answers
+ 2
Python is extensively self-documenting, and you can add __doc__ to query the documentation: print(np.random.random.__doc__) Relevant lines: returns values in the half-open interval [0, 1) returns an array of floats having shape (size) When you look at the output, how many random floats between [0, 1) are returned? Does that match something about the call at that line?
18th Aug 2018, 5:53 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
Python is extensively self-documenting, and you can add __doc__ to query the documentation: print(np.random.random.__doc__) Relevant lines: returns values in the half-open interval [0, 1) returns an array of floats having shape (size) When you look at the output, how many random floats between [0, 1) are returned? Does that match something about the call at that line? Much Complex... 🙉🙉🙉
19th Aug 2018, 3:55 AM
C ++
C ++ - avatar
+ 1
Python is extensively self-documenting, and you can add __doc__ to query the documentation: print(np.random.random.__doc__) Relevant lines: returns values in the half-open interval [0, 1) returns an array of floats having shape (size) When you look at the output, how many random floats between [0, 1) are returned? Does that match something about the call at that line? Much Complex... 🙉🙉🙉
19th Aug 2018, 3:55 AM
C ++
C ++ - avatar