class Node(object): def __init__(self, elem): self.elem = elem self.next = None class SingleLinkList(object): def __init__(self,node=None): self._head = node def is_empty(self): return self._head == None def length(self): cur = self._head ...