diff options
Diffstat (limited to 'examples/general/prune_tree.py')
-rw-r--r-- | examples/general/prune_tree.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/general/prune_tree.py b/examples/general/prune_tree.py index 0c8772e..538c9ca 100644 --- a/examples/general/prune_tree.py +++ b/examples/general/prune_tree.py @@ -1,8 +1,8 @@ from ete3 import Tree # Let's create simple tree t = Tree('((((H,K),(F,I)G),E),((L,(N,Q)O),(P,S)));', format=1) -print "Original tree looks like this:" -print t +print("Original tree looks like this:") +print(t) # # /-H # /--------| @@ -25,8 +25,8 @@ print t # \-S # Prune the tree in order to keep only some leaf nodes. t.prune(["H","F","E","Q", "P"]) -print "Pruned tree" -print t +print("Pruned tree") +print(t) # # /-F # /--------| |