About 560,000 results
Open links in new tab
  1. python - How to create a list of lists for family tree - Stack Overflow

    May 10, 2016 · Learning to create a function that results a list of lists... for example, something that can represent a family tree. Here is what I came up with: many = int(input('How many children does "' + root[0] + '" have? ')) if many > 0: root.append([[] for y …

  2. Python family tree from dict with defined parents [closed]

    Nov 11, 2013 · Look up the list of that person's children from our dictionary, and recurse, with a depth one greater. Continue onto the next person. Here's the code: descent_dict = defaultdict(list) for person in family_list:

  3. Building a Family Tree, with Python and Graphviz | Medium

    Apr 26, 2020 · Employing python and graphviz visualization to create a simple, easily editable family tree. Can be directly copied to create your own custom family tree.

  4. Python: Family-class - Stack Overflow

    Nov 11, 2014 · I'm implementing a "person"-class with the arguments name, title, and children. The function "desc" should return a list of the persons which are below the family tree. So far, I've done this: def __init__(self, name, title, children=None): self.name = name. self.title = title. if children is None: self.children = [] else: self.children = children.

  5. Introduction to Pandas Family Tree - Delft Stack

    Nov 9, 2022 · This tutorial educates about a tree data structure which leads to creating graph drawing of the family tree using Pandas module in Python.

  6. Python Lists - W3Schools

    Lists are one of 4 built-in data types in Python used to store collections of data, the other 3 are Tuple, Set, and Dictionary, all with different qualities and usage. Lists are created using square brackets: Create a List: List items are ordered, changeable, and allow duplicate values.

  7. GitHub - arv-anshul/family-tree: Create family tree using python

    Create family tree using python and export it as JSON or mermaid format. These code snippets demonstrate the creation of a family tree with grandparents, parents, and children, and how to visualize it using the FamilyTree class. Additionally, the example shows how to export the family tree data to a JSON file for further analysis or sharing.

  8. Python List of Lists | GeeksforGeeks

    Dec 29, 2024 · A list of lists in Python is a collection where each item is another list, allowing for multi-dimensional data storage. We access elements using two indices: one for the outer list and one for the inner list.

  9. The Python Family of Languages - Matt Rickard

    May 3, 2023 · A list of supersets, subsets, major implementations, and transpiled languages that borrow from Python. Cython: Superset of Python that lets you write C extensions. Python-like syntax, static typing, and direct C API access. Hy: A Lisp dialect that embedded in Python. Transforms Lisp code into a Python AST.

  10. Family Trees - Python Fiddle

    Define a procedure, ancestors (genealogy, person), that takes as its first input a Dictionary in the form given above, and as its second input the name of aperson. It should return a list giving all the known ancestors of the input person.

Refresh