Created
February 6, 2022 15:48
-
-
Save MartinThoma/544f5e4d0e5d277cf186cba0457129cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rich.tree import Tree | |
from rich import print | |
tree = Tree("Life") | |
prokaryota = tree.add("Prokaryota") | |
prokaryota.add("Eubacteria") | |
prokaryota.add("Archaebacteria") | |
eukaryota = tree.add("Eukaryota") | |
eukaryota.add("Protozoa") | |
eukaryota.add("Chordata") | |
plantae = eukaryota.add("Plantae") | |
plantae.add("glaucophytes") | |
plantae.add("[red]red algae") | |
plantae.add("[green][bold]green algae") | |
plantae.add("land plants 🌳") | |
eukaryota.add("Fungi") | |
eukaryota.add("Animalia") | |
print(tree) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment