text_plain_output_1.png
n = 3
my_list = [2, 3, 4, 5, 6, 7, 8]
my_new_list = my_list[:n + 1]

my_list = ['haha', 'one', 'two', 'serious']
first_item = my_list[0]
last_item = my_list[-1]
my_result = first_item == last_item
print(my_result)