I know I can do this with a loop but I was wondering if there was a neater solution?
I have a list, which I want to select the first n items and place them in another list.
What I want to do is something like (pseudo code)
n = 3
x = [1,2,3,4,5,6,7,8,9,0]
y = copy n from x
print(y)
>>> [1,2,3]
Thanks