Else insert the temporary node after the tail of the existing node and make the temporary node as the tail of the linked list
else : NEW_LINE INDENT while ( tail != None ) : NEW_LINE INDENT if ( tail . next == None ) : NEW_LINE INDENT tail . next = temp NEW_LINE tail = tail . next NEW_LINE DEDENT tail = tail . next NEW_LINE DEDENT DEDENT