def first(nodes):
if len(nodes) >= <NUM_LIT:1>:<EOL><INDENT>return nodes[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Return the first node in the given list, or None, if the list is empty.