Numpy Array Problem | Sololearn: Learn to code for FREE!

+2

Numpy Array Problem

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

8/17/2018 9:52:50 AM

C ++

3 Answers

New Answer

+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?

+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... πŸ™‰πŸ™‰πŸ™‰

+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... πŸ™‰πŸ™‰πŸ™‰