DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+2 =
Submit