from sklearn.datasets import load_iris data = load_iris() print(list(data.target_names)) # ['setosa', 'versicolor', 'virginica']