Answers for "add 1 to all elements in array python"

0

add 1 to all elements in array python

import numpy
a = [1, 1, 1 ,1, 1]
ar = numpy.array(a)
print ar + 2
Posted by: Guest on October-02-2021

Code answers related to "add 1 to all elements in array python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language