to print entire list:
for item in a: print(item)To print last item:
print(a[-1])Your item: a[a[-1]] would be:
Output:a indexed by a[-1]
= a[-2]
= 1