Python iterate atas elemen N pertama
for item in your_list[:n]:
...
Benja
for item in your_list[:n]:
...