Build a linked list

Write build(items) that creates a linked list of ListNodes holding the values of items in order and returns its head, or None for an empty list. Import ListNode from checker.

build([1, 2, 3])  ->  1 -> 2 -> 3
build([])         ->  None

The point is to practise creating and linking nodes with a tail reference, or with a dummy head.

def build(items):
    ...