A prediction on its own hides how close the vote was. You want the model's confidence too.
Task: write top_confidence(flowers, k).
flowers is a list of iris flowers, each 4 numbers in the iris column order.load_iris(as_frame=True) and split with train_test_split(..., test_size=0.25, random_state=0).KNeighborsClassifier(n_neighbors=k) on the training rows.flowers.