n-th node from the end

Write nth_from_end(head, n) that returns the value of the n-th node counting from the end, where n = 1 is the last node. n is at most the length.

nth_from_end(1 -> 2 -> 3 -> 4 -> 5, 2)  ->  4
nth_from_end(1 -> 2 -> 3 -> 4 -> 5, 5)  ->  1

The point is to practise two pointers a fixed distance apart, in one pass.

def nth_from_end(head, n):
    ...