<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def discrete_index(self, indices):
 """get elements by discrete indices :param indices: list discrete indices :return: elements """

        elements = []
        for i in indices:
            elements.append(self[i])
        return elements