What does those code mean?

I got hint from exercise :
print(classify([.4, .2, .9], movie_dataset, 5)) - passing 3 variables to the function
why does that list [.4, .2, .9] has dots ?

P.S. lesson is here Finding the Nearest Neighbors

seems they are decimal/float values (0.4, 0.2, 0.9). Been a while since I did python, but I think you could write decimal/float number without the leading zero

1 Like