I've written a tutorial to explain basic machine learning concepts and to show how to get started with the great Python scikit-learn library.
I hope it helps, especially if you're taking part or wanting to take part in the Repl.it AI competition!
The tutorial is published over here: https://www.codementor.io/garethdwyer/introduction-to-machine-learning-with-python-and-repl-it-rln7ywkhc
As always, keep the feedback coming!
@mananboi006 It should work! If your data set is very simple (like in the tutorial), then often the leaves will be "pure" and the tree will think that it is certain about its answer.
Try a more complicated / larger dataset or a different classifier.