[Edit]+0-0python get last n elements from listMMORex660Copy1 2 3 4 my_list = ['A', 'B', 'C', 'D', 'E'] n = 3 print(my_list[-n:]) # ['C', 'D', 'E']