Inspired by tweet, I've just had a go myself. ChatGPT still can't give me the right answer (though it's close) even when it thinks it's running python, and it doesn't realise that Python 2 would output an integer, not a float.