Python NumPy Indexing

Indexing is the reading and changing of specific value in array

Read and change a value in array

The above code will output this result

[0.5 0.51111111 0.52222222 0.53333333 0.54444444 0.55555556
0.56666667 0.57777778 0.58888889 0.6 ]

0.5333333333333333

7.0

Read and change a value in two dimensional array

The above code will output this result

[[1 2 3]
[4 5 6]
[7 8 9]]

3

44