Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: recursive dependency tree

  • Create a file called recursive_dependency_tree.py

Give a bunch of files that has list of requirement in them. Process them recursively and print the resulting full list of requirements

b
c
d
e
d
f
g
$ python traversing_dependency_tree.py a

Processing a
Processing b
Processing e
Processing d
Processing c
Processing f
Processing g
Processing d