Skip to content

Instantly share code, notes, and snippets.

@ninest
Created June 20, 2020 04:06
Show Gist options
  • Save ninest/6c67eb6e3f77892053af1ce2bdb95fd0 to your computer and use it in GitHub Desktop.
Save ninest/6c67eb6e3f77892053af1ce2bdb95fd0 to your computer and use it in GitHub Desktop.
import numpy as np
arr = np.zeros((3,3))
arr[1][0] = 5
for row_index in range(len(arr)):
for col_index in range(len(arr[row_index])):
print(row_index, col_index, " : ", arr[row_index][col_index])
print(arr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment