Python Data Type Decision Tree