With linq I would

var top5 = array.Take(5);

How to do this with Python?

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *