def traverse_list(n):
    """
    Traverse the whole list. Return the last node and the number of steps to
    the last node.
    """
    steps = 0
    while n.next is not None:
        n = n.next
        steps += 1
    return n, steps