結果 : check if a function returns true python