Skip to content

Conversation

@gideonjeffrey
Copy link

@gideonjeffrey gideonjeffrey commented Mar 2, 2021

For the highlighted code, the prompt was to get all the negative elements of X. As currently written, the solution code gets all elements of X that are either 0 or negative. Simple change:

mask = X < 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant