I've tried several different methods, some of which I found on here which include making a Node class and nested dictionaries, but I can't seem to get them to work. My code currently takes in several lines of DNA (a,t,g,c) and stores then as a numpy array. It then finds the attribute that gives the most gain and splits the data into 4 new numpy arrays (dependent upon an a, t, g, or c being present at the attribute). I'm unable to make a recursive function which can build the tree. I'm quite new to python and programming itself, so please describe with detail what I should do. Continue reading...