first = False
d = {'a': ['Adam', 'Book', 4], 'b': ['Bill', 'TV', 6, 'Jill', 'Sports', 1,
    'Bill', 'Computer', 5], 'c': ['Bill', 'Sports', 3], 'd': ['Quin',
    'Computer', 3, 'Adam', 'Computer', 3], 'e': ['Quin', 'TV', 2, 'Quin',
    'Book', 5], 'f': ['Adam', 'Computer', 7]}
print_tree(d)
Pretty Print output in a sideways tree format in console window