Run
source_list = [8, 4, 7, 3, 6, 1, 9] N = 4 new_list = [] for index in range(0, N): new_list.append(source_list[index]) print(source_list) print(new_list)
Output