So, earlier today I asked a question about binary trees, which was off-topic, unfortunately, so here I am now with something that would make more sense.
def a