taking one by one element from the list python code example
Example 1: how to prit a certian in a list python
how to prit a certian in a list python
Example 2: list elements not in indices
import numpy as np
x=np.array(mylist)
mask=np.full(len(mylist),True,dtype=bool)
mask[idx]=False
y=x[mask]
z=x[~mask]
print(y,z)