I know how to do this, but I was wondering which method was more pythionic. The two I have are these:
a = [1, 2, 3, 4, 5]
print a[::-1][0] #Method 1
print a[len(a) - 1] #Method 2
So which is the better of the two to do? They both work.
EDIT
Hi, sorry for the really bad question. I completely forgot about [-1]...