+ 2
Numpy Array Problem
Explain line 9. ???😏😏😏 Of the following code.. https://code.sololearn.com/cWPFaV5h1InS/?ref=app
3 Réponses
+ 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...
🙉🙉🙉