Contact: aviboots(AT)netvision.net.il
39,868 questions
51,791 answers
573 users
import numpy as np lst = [4, 7, 12, 6, 98, 43, 77, 89, 99, 100, 103] arr = np.take(lst, [1, 2, 5, 9]) print(arr) ''' run: [ 7 12 43 100] '''