結果 : how to define a loop in python