best attempt at nearest neighbor

Close, but not quite finished. Got a neighbor from the test data for each item in the training data, but need to then predict a label. Unsure of accuracy of the other work, as a certain value seemed to crop up more often than made sense.
If you're using a loop and know exactly how many times it will run, it's generally better to use "for" rather than "while". The code is more clear that way, and you don't have to manually increment your index.