• Isn' it wrong???

Question related to mission Min and Max

 

One of the test is the following

max(2.2, 5.6, 5.9, key=int) == 5.6

but when i execute it in IDLE the result is 5.9...

I use Python 3.4 on my Desktop...