# Exercise: Fruit Sorter

Exercise: Fruit Sorter: Exercise: Fruit Sorter.

Updated: November 19, 2026

1. [Exercise: Fruit Sorter](https://www.ask-codey.com/lessons/exercise-ml-fruit-sorter) (Journeyman): Write four functions for Three Rivers Fruit Packers, a straight-line distance and a nearest-neighbors search in plain Python, then a decision tree and a nearest neighbors classifier with the settings you choose, and let pytest check the distances, the neighbors' order and the models' settings.

Source: https://www.ask-codey.com/courses/machine-learning-python/topics/exercise-ml-fruit-sorter
