parameters: (self, data)
docstring: inserts node at the end of linked list
docstring_summary: inserts node at the end of linked list
docstring_tokens: inserts node at the end of linked list
function: def insert_tail(self, data):
          """ inserts node at the end of linked list """
          node = Node(data)
          if self.head is None:
              self.head = node
          else:
              current = self.head
              while current.get_next() is not None:
                  current = current.get_next()
              current.set_next(node)
function_tokens: def insert_tail ( self , data ) : node = Node ( data ) if self . head is None : self . head = node else : current = self . head while current . get_next ( ) is not None : current = current . get_next ( ) current . set_next ( node )