from BST import BST bst = BST(7, 'ok') bst.insert(3, 'dooke') bst.insert(10, 'poke') bst.insert(5, 'poop') bst.insert(1, 'dope') bst.insert(8, 'lol') bst.insert(9, 'haagu') bst.insert(12,'paadu') bst.printinorder() print '\n' '''try: print bst.getvalue(12) print bst.getvalue(9) print bst.getvalue(8) print bst.getvalue(1) print bst.getvalue(5) print bst.getvalue(10) print bst.getvalue(3) print bst.getvalue(7) print bst.getvalue(14) except RuntimeError as e: print e''' key = 19 if key in bst: print "I am in bst" else: print 'No i am not'