-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the answer of question 45 is not exactly correct. #55
Comments
You're right. Do you have a proposal for the correct answer ? |
try this? |
Or even simpler (
|
as the answer, can use |
zhukpm
added a commit
to zhukpm/numpy-100
that referenced
this issue
Jan 18, 2020
zhukpm
added a commit
to zhukpm/numpy-100
that referenced
this issue
Jan 18, 2020
import numpy as np |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
z = np.array([1, 2, 3, 4, 5, 5], dtype=int)
z[z.argmax()] = 0
print(z)
will output:
[1 2 3 4 0 5]
But for this question, the correct answer should be:
[1 2 3 4 0 0]
The text was updated successfully, but these errors were encountered: