Run
# Given list my_list = [10, 20] # Number of elements to slice from the start N = 3 # Slice the list sliced_list = my_list[:N] # Print sliced list print(sliced_list)
Output