結果 : how to replicate in python