Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

divide a value by all values in a list

import numpy as np
myList = [10, 20, 30, 40, 50, 60, 70, 80, 90]
myInt = 10
newList  = np.divide(myList, myInt)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #divide #values #list
ADD COMMENT
Topic
Name
4+7 =