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