This seems a bit odd! I did a program which required me removing duplicated from the list and choose the second last number. I did it using set(). however I came up with something unexpected.
set([32.0,36.0,39.0,40.0])
gives me an output of [32.0, 40.0, 36.0, 39.0]. I want to know why this happens. I'm using python 3.9.1 Thanks in advance