結果 : python code for front end