結果 : how to code a simulation in python