I have a dictionary and I want to read the values of the different keys. For example, I want to read the values of [0, 3]
from the following dictionary:
dic = {0: np.array([2]), 1: np.array([3]),
2: np.array([6]), 3: np.array([7]), 4: np.array([8])}
The desired output is also a array which is:
out=[np.array([2]), np.array([7])]