Move the head to poto the new Node
head_ref = new_Node NEW_LINE head = head_ref NEW_LINE return head NEW_LINE def reverseList ( ) : NEW_LINE global head ; NEW_LINE current , prev , next = None , None , None ; NEW_LINE current = head ; NEW_LINE prev = None ; NEW_LINE while ( current != None ) : NEW_LINE INDENT next = current . next ; NEW_LINE current . next = prev ; NEW_LINE prev = current ; NEW_LINE current = next ; NEW_LINE DEDENT head = prev ; NEW_LINE