def listprint(selfnode)while (node is not none)print(node data)last node node node next dllist doubly_linked_list(dllist push( dllist append( dllist push( dllist push( dllist append( dllist listprint(dllist headwhen the above code is executedit produces the following result please note the position of the elements and for the append operation