In Python, how do I index a list with another list?

T = [L[i] for i in Idx]

Leave a Comment