DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to add a number to each element in an array python with loop
from numpy import * arr = array([15,2,55,4,5]) for i in range(5): res = arr[i]+5 print(res,end=' ')
PREVIOUS
NEXT
Tagged:
#add
#number
#element
#array
#python
#loop
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit