結果 : print first n elements of array python