Module Assign NameStore Str Expr Str ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr While NameLoad body Print AttributeLoad NameLoad attr TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler body Break decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body AugAssignSub AttributeStore NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num While BoolOpAnd NameLoad CompareLt NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr AugAssignAdd NameStore Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Print Call AttributeLoad Str attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias Assign NameStore Call NameLoad For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad Print Str Expr Call AttributeLoad NameLoad attr Print Str Expr Call AttributeLoad NameLoad attr Print Str Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Print Str For NameStore Call NameLoad BinOpSub AttributeLoad NameLoad attr Num Num Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A __author__ bt3 N/A  Implement a double-linked list, which is very simple, we just need inherits
from a Linked List Class and  add an attribute for previous. linked_list_fifo LinkedListFIFO dNode N/A object N/A __init__ N/A N/A self value pointer previous N/A None None None N/A N/A N/A self value value N/A N/A self pointer pointer N/A N/A self previous previous N/A N/A dLinkList N/A LinkedListFIFO N/A printListInverse N/A N/A self N/A N/A N/A node N/A self tail N/A node N/A N/A N/A node value N/A N/A N/A node N/A node previous N/A N/A N/A N/A N/A _add N/A N/A self value N/A N/A N/A N/A self length 1 N/A node N/A dNode value N/A N/A self tail N/A N/A N/A N/A self tail pointer node N/A N/A node previous N/A self tail N/A N/A self tail node N/A _delete N/A N/A self node N/A N/A N/A N/A self length 1 N/A N/A N/A node previous pointer N/A node pointer N/A N/A N/A node pointer N/A N/A N/A self tail N/A node previous N/A _find N/A N/A self index N/A N/A N/A node N/A self head N/A i 0 N/A N/A node N/A i index N/A N/A node N/A node pointer N/A i 1 N/A N/A node i N/A deleteNode N/A N/A self index N/A N/A N/A N/A N/A N/A self head N/A N/A N/A self head pointer N/A N/A N/A N/A self _deleteFirst N/A N/A N/A node i N/A N/A self _find index N/A N/A i index N/A N/A N/A N/A self _delete node N/A N/A N/A N/A Node with index {} not found format index N/A N/A N/A N/A __name__ __main__ N/A collections Counter N/A ll N/A dLinkList N/A i N/A range 1 5 N/A N/A N/A N/A ll addNode i N/A Printing the list... N/A N/A N/A ll _printList N/A Now, printing the list inversely... N/A N/A N/A ll printListInverse N/A The list after adding node with value 15 N/A N/A N/A ll _add 15 N/A N/A N/A ll _printList N/A The list after deleting everything... N/A i N/A range N/A N/A ll length 1 -1 -1 N/A N/A N/A N/A ll deleteNode i N/A N/A N/A ll _printList