import numpy as np myList = [10, 20, 30, 40, 50, 60, 70, 80, 90] myInt = 10 newList = np.divide(myList, myInt)
Here is what the above code is Doing:
1. We create a list called myList.
2. We create an integer called myInt.
3. We divide each element in myList by myInt.
4. We store the result in a new list called newList.