pop all nodes from stack and push them in the beginning of the list
while ( len ( stk ) ) : NEW_LINE INDENT head . append ( stk [ 0 ] ) NEW_LINE stk . pop ( 0 ) NEW_LINE DEDENT print ( " Created ▁ DLL ▁ is : " ) NEW_LINE printList ( head ) NEW_LINE