top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Aug 8
  • 1 min read

Updated: Aug 9

import numpy as np

arr = np.array([3, 15, 8, 22, 7])

mask = arr < 10

arr[mask] = 0

print(np.sum(arr))


[Running] python3 -u "/Users/wname/test/test73.py"

37

[Done] exited with code=0 in 0.158 seconds


Try to run it.
Try to run it.

 
 
 

1 Comment


Guest
Aug 08

Try to run it to verify.

Like
bottom of page