Driver Code
N1 = [ ] NEW_LINE N1 . append ( 5 ) NEW_LINE N1 . append ( 8 ) NEW_LINE N1 . append ( 7 ) NEW_LINE N1 . append ( 4 ) NEW_LINE N2 = [ ] NEW_LINE N2 . append ( 2 ) NEW_LINE N2 . append ( 1 ) NEW_LINE N2 . append ( 3 ) NEW_LINE res = addStack ( N1 , N2 ) NEW_LINE display ( res ) NEW_LINE