Given peanut
, a 4x5 array of 0s, and butter
, a 5-element 1-d array of indices, fill the rows of peanut
with 1s starting from the column indices given by butter
.
- Python NumPyBeginnerHigh School ReunionNolaGold Miner
Given peanut
, a 4x5 array of 0s, and butter
, a 5-element 1-d array of indices, fill the rows of peanut
with 1s starting from the column indices given by butter
.