Run
# Given list my_list = [10, 20, 30, 40, 50, 60] # Slice the list, without last element sliced_list = my_list[: len(my_list)-1] # Print sliced list print(sliced_list)
Output