Python Dernier n Array Elements

array = ["a", "b", "c", "d"]

num_elements = 3
print(array[-num_elements:])
panda