When creating a post, please add:
- Week #2 must be added in the tags option of the post.
- Link are referring to: Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera to the classroom item you
- Description (include relevant info but please do not post solution code or your entire notebook)
[[ 0 5 -3 6 8]
[ 0 6 3 8 1]
[ 0 0 0 0 0]
[ 0 0 0 1 7]
[ 0 2 1 0 4]]
For the above message, Jupyter is returning the wrong values…
print(get_index_first_non_zero_value_from_column(N, column = 1, starting_row = 1))
Output: 1
The output should be 6
Additionally, no matter the request there isn’t a pattern within the matrix to the values that are being returned. There appears to be an error within the notebook.
Correct Labeling:
C: 0 1 2 3 4
R: 0 [[ 0 5 -3 6 8]
1 [ 0 6 3 8 1]
2 [ 0 0 0 0 0]
3 [ 0 0 0 1 7]
4 [ 0 2 1 0 4]]
print(get_index_first_non_zero_value_from_column(N, column = 1, starting_row = 1))
Correct Output: 6 - First Non Zero Value
Please provide assistance