(self)
return len(self.childs) == 0
Return True if the node is a leaf

      :rtype: True or False
Return True if the node is a leaf
Return True if the node is a leaf
def isLeaf(self):
      """ Return True if the node is a leaf

      :rtype: True or False
      """
      return len(self.childs) == 0
def isLeaf ( self ) : return len ( self . childs ) == 0