Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add a constant to a list python


import numpy
a = [1, 1, 1 ,1, 1]
ar = numpy.array(a)
print ar + 2

Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #add #constant #list #python
ADD COMMENT
Topic
Name
6+2 =