LearnPy Hub
← Machine Learning: scikit-learn problems
Easy

Apple or Orange?

The starter code has six labelled fruits (weight in grams, sweetness 1-10). Train a KNeighborsClassifier with n_neighbors=3 on them, read one new fruit and print its predicted label.

Input

One line: weight and sweetness, two integers.

Output

apple or orange.

Sample 1

Input
145 7
Output
orange

Sample 2

Input
165 2
Output
apple
solution.py
Output appears here
Hints
Apple or Orange? · Python practice problem · LearnPy Hub