python print top 5 results of array code example Example: python print top 5 results of array #print first 10 elements in list print(mylist[:10])