結果 : first fit code in python