Typeerror While Trying To Implement Knn Algorithm With Python Stack

Typeerror While Trying To Implement Knn Algorithm With Python Stack