Bagilah nilai dengan semua nilai dalam daftar
import numpy as np
myList = [10, 20, 30, 40, 50, 60, 70, 80, 90]
myInt = 10
newList = np.divide(myList, myInt)
Elated Eagle
import numpy as np
myList = [10, 20, 30, 40, 50, 60, 70, 80, 90]
myInt = 10
newList = np.divide(myList, myInt)
numbers = [1, 2, 3]
quotients = []
for number in numbers:
quotients.append(number / 2)